[Zope] ZClass Virgin

Kevin Dangoor kid@kendermedia.com
Sat, 28 Aug 1999 12:53:17 -0400


-----Original Message-----
From: Robin Becker <robin@jessikat.demon.co.uk>
To: zope@zope.org <zope@zope.org>
Date: Saturday, August 28, 1999 12:45 PM
Subject: [Zope] ZClass Virgin


>What's the preferred way to change a property. Eg say I have a property
>count and I want to increment this each time the object is viewed. I've
>tried various constructs like
><dtml-call count="count+1"> ....</dtml-let>, but the count always goes
>back to the original value.

This should do it:
<dtml-call "propertysheets.YourPropSheet.manage_changeProperties({'count' :
count+1})">

Keeping in mind of course that you still have that ages old "this creates a
transaction each time the method is hit" issue that's
come up with the previous counter products...

Kevin