[Zope] Updating Properties

Michel Pelletier michel@digicool.com
Thu, 30 Sep 1999 11:48:29 -0400


Evan Gibson wrote:
> 
> I have a very simple use for a property of a DTML document...
> 
> A counter.
> 
> We make the counter property and set it and then put:
> 
> <dtml-var "manage_updateProperties({'counter': counter+1})">
> 
> and this works great with one minor problem...
> 
> You need manage privileges to look at it.
> 
> How do you update the properties without making the people have
> privileges?

Make a method with a manager proxy role.  It would look cleaner anyway.

-Michel

> 
> I tried everything else I could think of like:
> <dtml-var "_['counter'] = counter+1">
> but none of them actually work.
> 
> Thanks.
> Evan.
> 
> --
>   Evan ~ThunderFoot~ Gibson    ~ nihil mutatem, omni deletum ~
>       May the machines watch over you with loving grace.
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (Related lists - please, no cross posts or HTML encoding!
> 
> To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )