[opensuse-factory] API chance python-cssutils
hello, I updated python-cssutils today and found this API change in the changelog 0.9.8 ----- HEAD 0.9.8a1 101212 + **API CHANGE (major)** replace CSSValue with PropertyValue, Value and other classes. NEW CLASSES: :class:`cssutils.css.PropertyValue` replaces CSSValue and CSSValueList - is iterable (iterates over all single Value objects which in soruce CSS might be separated by "," "/" or " " - a comma separated list of IDENT values is no longer handled as a single String (e.g. ``Arial, sans-serif``) :class:`cssutils.css.Value` replaces CSSPrimitiveValue with separate ``value`` and ``type`` info (value is typed, so e.g. string for e.g. STRING, IDENT or URI values, int or float) and is base class for more specific values like: :class:`cssutils.css.URIValue` replaces CSSPrimitiveValue, additional attribute ``uri`` :class:`cssutils.css.DimensionValue` replaces CSSPrimitiveValue, additional attribute ``dimension`` :class:`cssutils.css.ColorValue` replaces CSSPrimitiveValue, additional attribute ``red``, ``green``, ``blue`` and ``alpha`` **TODO: Not yet complete, only rgb, rgba, hsl, hsla and has values use this object and color and alpha information no done yet!** :class:`cssutils.css.CSSFunction` replaces CSSPrimitiveValue function, not complete yet also renamed ``ExpressionValue`` to :class:`cssutils.css.MSValue` with new API Roelof -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (1)
-
Roelof Wobben