------------------------------------------------------------------- Thu Jan 6 19:41:00 UTC 2011 - rwobben@hotmail.com - Update to version 0.9.8a1 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 - IMPROVEMENT/CHANGE: Validation of color values is tighter now. Values like ``hsl(1, 2, 3)`` do not validate as it must be ``hsl(1, 2%, 3%)``. This mostly effects HSL/A and RGB/A notation. - **IMPROVEMENT**: New Value parsing and API accelerate parsing of style declarations which take about 20-30% less time now. Of course this depends on the complexity of your styles. + BUGFIX: fixes issue #41, #42, #45, #46 PropertyValue.value returns value without any comments now, else use PropertyValue.cssText - FEATURE: ``cssutils.replaceUrls()`` accepts as first argument a `cssutils.css.CSSStyleSheet` but now also a :class:`cssutils.css.CSSStyleDeclaration` object, so may be used like the following which is useful when you work with HTML style attributes:: >>> style = cssutils.parseStyle("background-image: url(1.png), url('2.png')") >>> cssutils.replaceUrls(style, lambda url: 'prefix/'+url) >>> print style.cssText background-image: url(prefix/1.png), url(prefix/2.png) (I omitted the validation error message as more than one background-image is not yet defined in the cssutils validator but does parse through without problems) + CHANGE: explicit `+` of any dimension, percentage of number value is kept now instead of being stripped as if put explicitly in the author SHOULD have meant something ;) ------------------------------------------------------------------- Mon Nov 8 15:31:12 UTC 2010 - rwobben@hotmail.com - update to 0.9.7b4 improves parsing of MS specific (and probably invalid!) values ------------------------------------------------------------------- Mon Nov 8 14:19:47 CET 2010 - pth@suse.de - Make package own the documentation subdir. - Mark documentation as such. ------------------------------------------------------------------- Tue Sep 14 08:08:19 UTC 2010 - coolo@novell.com - update to 0.9.7b3 - several changes (see CHANGELOG.txt), just random picks: * Massive speed improvement of handling of CSSVariables of a stylesheet * CSSFunction value parameters may contain HASH values like ``#fff`` now * Changed parameters of script/utility function ``csscombine``. - sphinx conf no longer provided ------------------------------------------------------------------- Tue May 18 14:53:05 CEST 2010 - prusnak@suse.cz - Update to 0.9.7a4 - cleanup spec file - api changes: * CSSRule values changed: NAMESPACE_RULE, COMMENT, VARIABLES_RULE * CSSStyleSheet.setSerializer and CSSStyleSheet.setSerializerPref DEPRECATED - compliance to http://dev.w3.org/csswg/cssom improved. - new features: * Started CSS Variables * added cssutils.css.CSSStyleSheet.variables * cssutils.ser.prefs.resolveVariables switchable * cssutils.ser.prefs.normalizedVarNames switchable * Added new options to cssutils.script.csscombine: cssText=None, href=None * Added CSSRuleList.rulesOfType(type) ------------------------------------------------------------------- Mon May 17 13:47:09 UTC 2010 - toms@suse.de - Update to 0.9.7a3 as needed for FATE#309541 - Added build requirement for python-sphinx - Added patch for copy.py (sphinx documentation) - Rebuild HTML documentation with sphinx - Better separate documentation package from main package ------------------------------------------------------------------- Mon Apr 28 17:50:55 CEST 2008 - pth@suse.de - Initial package.