Re: Zope digest, Vol 1 #2639 - 10 msgs
I have just finished the ZooExhibit product tutorial. It checks the property of a ZClass, last_meal_time to see if the animal is hungry. If so, I want to feed it (practice). So, I created a python script with a link to it inside the <dtml-if isHungry> area, and in it I have: manage_changeProperties(last_meal_time, '2002-01-01') It runs just fine, but my property is not updated. How can I update this property? Thanks! Jeremy Cowgar
Jeremy Cowgar wrote at 2003-3-8 00:15 -0500:
I have just finished the ZooExhibit product tutorial. It checks the property of a ZClass, last_meal_time to see if the animal is hungry. If so, I want to feed it (practice). So, I created a python script with a link to it inside the <dtml-if isHungry> area, and in it I have:
manage_changeProperties(last_meal_time, '2002-01-01')
ZClass properties usually live in a property sheet. You must call the "manage_changeProperties" of the corresponding property sheet. I forgot how to access the property sheet. I think it was instance.propertysheets.sheetname Search the archives, to find out precisely.... Dieter
participants (3)
-
David Stockwell -
Dieter Maurer -
Jeremy Cowgar