[Zope] set Properties in several Property Sheets in 1 call?

Chris McDonough chrism@digicool.com
Sat, 22 Apr 2000 15:44:07 -0400 (EDT)


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 )
>