Re: [Zope] Another Annoying question...Name Space related I think...
-----Original Message----- From: Edward Muller <emuller@PaineWebber.com> To: 'zope@zope.org' <zope@zope.org> Date: Thursday, October 28, 1999 8:03 PM Subject: [Zope] Another Annoying question...Name Space related I think...
<dtml-with "FWAEvent.createInObjectManager(REQUEST['id'],REQUEST)"> <!--#call "propertysheets.Basic.manage_editProperties(REQUEST)"--> </dtml-with> (Although I'm still not really sure what the above is supposed to do)
This is the one you should generally use. To change the properties on a ZClass instance, you need to call manage_editProperties or manage_changeProperties *on the specific propertysheet* that you are looking to change. The difference between manage_editProperties and manage_changeProperties is that manage_editProperties will change any property that it can find a value for in REQUEST. manage_changeProperties can work like this, too. Or you can specify specific properties to change <dtml-call "propertysheets.MyPropSheet.manage_changeProperties({'title' : 'foo'})"> (sets the "title" property on MyPropSheet of this ZClass instance to "foo".) HTH, Kevin
Kevin Dangoor wrote:
-----Original Message----- From: Edward Muller <emuller@PaineWebber.com> To: 'zope@zope.org' <zope@zope.org> Date: Thursday, October 28, 1999 8:03 PM Subject: [Zope] Another Annoying question...Name Space related I think...
<dtml-with "FWAEvent.createInObjectManager(REQUEST['id'],REQUEST)"> <!--#call "propertysheets.Basic.manage_editProperties(REQUEST)"--> </dtml-with> (Although I'm still not really sure what the above is supposed to do)
This is the one you should generally use. To change the properties on a ZClass instance, you need to call manage_editProperties or manage_changeProperties *on the specific propertysheet* that you are looking to change. The difference between manage_editProperties and manage_changeProperties is that manage_editProperties will change any property that it can find a value for in REQUEST. manage_changeProperties can work like this, too. Or you can specify specific properties to change <dtml-call "propertysheets.MyPropSheet.manage_changeProperties({'title' : 'foo'})">
(sets the "title" property on MyPropSheet of this ZClass instance to "foo".)
It seems that manage_editProperties(REQUEST.form) handles 'boolean' types from a REQUEST while manage_changeProperties(REQUEST.form) does not. Just something I ran into working with them, David
HTH,
Kevin
participants (2)
-
David Kankiewicz -
Kevin Dangoor