Changeset 2895:3af461cdf3ce in livinglogic.python.xist

Show
Ignore:
Timestamp:
08/21/07 15:52:50 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix regression with new cssValue property from cssutils.

The cssValue property is not a string, but an object, so we
have to extract the string value (via its cssText property).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/css.py

    r2892 r2895  
    187187                        if not isinstance(prop, css.CSSComment): 
    188188                            for value in prop: 
    189                                 styles[prop.name] = (count, prop.name, value.cssValue) 
     189                                styles[prop.name] = (count, prop.name, value.cssValue.cssText) 
    190190                                count += 1 
    191191                    style = " ".join("%s: %s;" % (name, value) for (count, name, value) in sorted(styles.itervalues()))