[Zope] probably stupid: changing zstylesheet properties through dtml

Danny William Adair Danny@Adair.net
Fri, 9 Mar 2001 17:46:39 +1300


How can I programmatically change A ZStyleSheet attribute (ZSSAttr) through
dtml???

<dtml-with css_content>
<dtml-with Body>
  <dtml-call "background.manage_changeProperties({'value' : new_bg})">
</dtml-with>
</dtml-with>

won't do, it gets me an authentication request (whatever my role), telling
me I am not allowed to access "changeProperties".
It's not a ZClass, so there is no propertysheet I would have to define, is
that right?

Through the management screen, everything works fine, but I want to change
only a few attributes from a _dtml method_, and I simply don't know how to
do it. I've given the method every available proxy role, and still.

I really believe that my problem is not ZStyleSheet-specific, but could
anyone out there who has successfully done _this_ tell me how to do it?

Thx in advance,

Danny