set Properties in several Property Sheets in 1 call?
Hi All, I have a form which posts to an update method, and would like to be able to do something to the effect of this: <!--#call "propertysheets.ALL.manage_changeProperties(REQUEST)"--> and have each REQUEST property plugged into the Property Sheet where it resides. It there any way to do this, or do you have to specify the sheet? kh
Kevin, In python, you can do something like: for ps in self.propertysheets: ps.manage_changeProperties(REQUEST) Where 'self' is (generally) a zclass instance. This in dtml *might* work (untested): <dtml-with myzclassinstance> <dtml-in propertysheets> <dtml-call manage_changeProperties(REQUEST)> </dtml-in> </dtml-with> You may want to mess around with something like this, I'm not sure I'm addressing your question properly with this answer... On Sat, 22 Apr 2000, Kevin Howe wrote:
Hi All,
I have a form which posts to an update method, and would like to be able to do something to the effect of this:
<!--#call "propertysheets.ALL.manage_changeProperties(REQUEST)"-->
and have each REQUEST property plugged into the Property Sheet where it resides.
It there any way to do this, or do you have to specify the sheet?
kh
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Kevin Howe wrote:
Hi All,
I have a form which posts to an update method, and would like to be able to do something to the effect of this:
<!--#call "propertysheets.ALL.manage_changeProperties(REQUEST)"-->
and have each REQUEST property plugged into the Property Sheet where it resides.
It there any way to do this, or do you have to specify the sheet?
kh
in dtml: <dtml-in "propertysheets.items()"> <dtml-with sequence-item> <dtml-call "manage_changeProperties(REQUEST)"> </dtml-with> </dtml-in> I've used code like this to create generic property change forms. Kapil www.sin.wm.edu
participants (3)
-
Chris McDonough -
Kapil Thangavelu -
Kevin Howe