ANN: cssutils 0.9.5b2
Christof Hoeke
csad7 at t-online.de
Sun Mar 23 01:28:42 CET 2008
what is it
----------
A Python package to parse and build CSS Cascading Style Sheets. (Not a
renderer though!)
main changes
------------
0.9.5b2
- **API CHANGE**: ``cssutils.parseURL`` has been renamed to
``parseUrl`` for consistency with ``getUrls`` or ``replaceUrls``.
Parameter ``href`` (before called ``url``) is the first and mandatory
parameter now.
+ **BUGFIX**: Fix the streamreader in the codec: Honor the encoding
if one is passed to the constructor instead of trying to detect it from
the stream.
+ **BUGFIX**: Reading referenced styleSheet in CSSImportRule did
not succeed as no encoding information is passed along. Encoding of
referenced sheets is always retrieved via HTTP or from imported sheet
itself. Fixed lots of unchecked cases and simplified exception handling
when reading a referenced sheet.
+ BUGFIX: Setting ``atkeyword`` of @rules checks if it is a valid
keyword for the specific rule. E.g. an @import rule accepts ``@im\port``
but not ``@namespace``.
+ BUGFIX: Fixed setting ``name`` of CSSImportRule. Setting ``name``
other than with a string results in xml.dom.SyntaxErr raised now
+ BUGFIX: ``CSSStyleSheet.type`` with a fixed value of "text/css"
and other readonly properties are really readonly now
Note:
CSSValue, CSSValueList, and CSSPrimitiveValue and the relevant
methods/properties Property.cssValue and
CSSStyleDeclaration.getPropertyCSSValue are more or less DEPRECATED and
will probably be replaced with interfaces defined in CSSOM. For now use
the properties and methods that handle values as simple strings, e.g.
``Property.value``. As the aforementioned classes are not hardly that
useful anyway this should not be a big problem but please beware if you
use or have used them.
If you think this a bad idea please let me know!
license
-------
cssutils is published under the LGPL version 2.1 or later, see
http://cthedot.de/cssutils/
The included `encutils <http://cthedot.de/encutils/>`__ has been updated
to version 0.8.2 with a compatible LGPL license. `restserver.py
<http://cthedot.de/restserver/>`__ has been updates to version 2.1 which
is in the public domain now (no Creative Commons license anymore). So
only a single license (the LGPL) is used throughout cssutils now. If you
have other licensing needs please let me know.
download
--------
For download options see http://cthedot.de/cssutils/
cssutils needs Python 2.4 or higher (tested with Python 2.5.2 on Vista only)
Bug reports (via Google code), comments, etc are very much appreciated!
Thanks.
Christof
More information about the Python-announce-list
mailing list