From b7177e99b6ab4574f96cafa79206f223c3de47b4dfde5194f4838809cfc144b3 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Tue, 11 Jan 2011 07:25:28 +0000 Subject: [PATCH] Accepting request 57269 from home:snowman1967 reviewed ok. OBS-URL: https://build.opensuse.org/request/show/57269 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssutils?expand=0&rev=20 --- cssutils-0.9.7b4.zip | 3 -- cssutils-0.9.8a1.zip | 3 ++ python-cssutils.changes | 111 ++++++++++++++++++++++++++++++++++++++++ python-cssutils.spec | 2 +- 4 files changed, 115 insertions(+), 4 deletions(-) delete mode 100644 cssutils-0.9.7b4.zip create mode 100644 cssutils-0.9.8a1.zip diff --git a/cssutils-0.9.7b4.zip b/cssutils-0.9.7b4.zip deleted file mode 100644 index 1c71533..0000000 --- a/cssutils-0.9.7b4.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b6b3aba856fa90d79aa4628fc056d5ff70b75efc9e35dd031d6f9c9829a537d -size 563262 diff --git a/cssutils-0.9.8a1.zip b/cssutils-0.9.8a1.zip new file mode 100644 index 0000000..796e6d3 --- /dev/null +++ b/cssutils-0.9.8a1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:861f797558fe2062a72a90fb31d93dcc2272e644ee2ba5651fe9565d477dabc5 +size 580579 diff --git a/python-cssutils.changes b/python-cssutils.changes index e5dfed0..2f1f174 100644 --- a/python-cssutils.changes +++ b/python-cssutils.changes @@ -1,3 +1,114 @@ +------------------------------------------------------------------- +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 diff --git a/python-cssutils.spec b/python-cssutils.spec index c381155..c13e58a 100644 --- a/python-cssutils.spec +++ b/python-cssutils.spec @@ -19,7 +19,7 @@ Name: python-cssutils -Version: 0.9.7b4 +Version: 0.9.8a1 Release: 1 Summary: Cascading Style Sheets (CSS) parser and library for Python Source: http://cssutils.googlecode.com/files/cssutils-%{version}.zip