[Zope-Annce] Re: ZStylesheets

Adrian Hungate adrian@haqa.clara.net
Sun, 9 Jul 2000 23:43:36 +0100


I have just posted an update to the ZStyleSheets product that fixes the
problem with Opera (I hope...) and also a bug that prevented importing of
stylesheets with multi-line comments. I have now tested this with much more
complex static stylesheets with multiple multi-line comments etc and it
seems to work.

I have added a new hidden method of ZStyleSheet and ZSSRule called 'dump'
which outputs the whole sheet ignoring browser type, but preceding each
element with the browsers list. It'll allow you to check why a particular
element is not getting sent to a particular browser type.

There is also a new visible management tab - Change Browser. This allows you
to change the browser settings for the entire sheet, or rule, including its
children...

http://www.zope.org/Members/haqa/ZStyleSheet

Enjoy

Adrian...
----- Original Message -----
From: "Alexander Limi" <alexander@limi.net>
To: <adrian@haqa.clara.net>
Sent: Sunday, May 28, 2000 6:24 PM
Subject: ZStylesheets


> Hi Adrian,
>
> Love your product. Exactly what I was looking for.
>
> But I have a few small problems:
>
> - The browser called Opera (http://www.opera.com) doesn't get the style
> sheets no matter what I select in the browser selection list. This is a
> pity, as it is at the moment THE most CSS-compliant browser in the world
> (version 4 beta 4). Download it, and have a look - it's only 1.5MB in
size,
> and a fantastic browser.
>
> We have a lot of users using Opera, so if you could fix ZStylesheets so
> Opera gets them too, I will be most pleased. The best would be if Opera
was
> added to the list as its own entry.
>
> - When I try to import a style sheet, I get the following error:
>
> Error Type: Bad Request
> Error Value: The id /* contains characters illegal in URLs.
>
> Traceback (innermost last):
>   File D:\Programs\Zope\lib\python\ZPublisher\Publish.py, line 224, in
> publish_module
>   File D:\Programs\Zope\lib\python\ZPublisher\Publish.py, line 189, in
> publish
>   File D:\Programs\Zope\lib\python\Zope\__init__.py, line 221, in
> zpublisher_exception_hook
>     (Object: ElementWithAttributes)
>   File D:\Programs\Zope\lib\python\ZPublisher\Publish.py, line 175, in
> publish
>   File D:\Programs\Zope\lib\python\ZPublisher\mapply.py, line 160, in
mapply
>     (Object: manage_importCSS)
>   File D:\Programs\Zope\lib\python\ZPublisher\Publish.py, line 112, in
> call_object
>     (Object: manage_importCSS)
>   File D:\Programs\Zope\lib\python\Products\ZStyleSheet\ZStyleSheet.py,
line
> 256, in manage_importCSS
>     (Object: ElementWithAttributes)
>   File D:\Programs\Zope\lib\python\Products\ZStyleSheet\ZStyleSheet.py,
line
> 281, in _WalkCSS
>     (Object: ElementWithAttributes)
>   File D:\Programs\Zope\lib\python\Products\ZStyleSheet\ZStyleSheet.py,
line
> 117, in _create
>   File D:\Programs\Zope\lib\python\OFS\ObjectManager.py, line 240, in
> _setObject
>     (Object: ElementWithAttributes)
>   File D:\Programs\Zope\lib\python\OFS\ObjectManager.py, line 210, in
> _checkId
>     (Object: ElementWithAttributes)
> Bad Request: (see above)
>
> Do you have any idea on what's wrong? is the stylesheet too complex?
>
> The stylesheet I'm trying to import is included as an attachment. Hope you
> don't mind.
>
> Keep up the good work!
>
> Greetings from a Norwegian Zopista,
>
>
> Alexander Limi.
>