Ok Guys, I am lost :-( We have created a set of Functions to edit the Properties of our objects. The idea is based on the Howto called Editing Only Properties found at: http://www.zope.org/Members/rlgines/propertiesOnly We wrote a __init__.py file in a seperate Products folder that actually "patches" the PropertyManager object dynamically (e.g. without cahnging the original source). This works all pretty well for DTML Documents as well as other objects. Now I created a ZClass (my very own :-) ) and tried to use this very manage_editPropertiesOnly thing as well. Without the result I wanted. When I linked to http://somwhere/path/to/zclass/instance/propertysheets/props/manage_editProp... with props being the name of the property sheet defined under the Property Sheet tab of the Zope management screen. manage_editPropertiesOnlyForm is a 1:1 copy of the manage_editPropertiesOnly DTML Method with some user interface changes. Furthermore does it call a copy of the manage_editProperties python function called manage_editPropertiesForm. This Function again is a 1:1 copy of the original with the difference to redirect to a different URL instead to the Zope management screen. When called it shows all properties and the according values. When I hit save it tells me it saved the properties but nothing acually happened. I poked around the sourcecode but could not find any hints. I re-copied the functions to ensure I had the correct code but without any results. It tries to post the form data the URL http://somwhere/path/to/zclass/instance/propertysheets/props .... I am using Zope 2.3.0 and Zope 2.3.2. Our manage_editPropertiesOnly function works (so far) under 2.1.6 2.2.0 2.2.5 2.3.0 and 2.3.2 (verified) Any hints ? Thanks in advance, Holger -- ----------------------------------- catWorkX GmbH Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 (0700) catWorkX Tel: +49 (40) 890 646-0 Fax: +49 (40) 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de
Holger Lehmann writes:
We have created a set of Functions to edit the Properties of our objects. The idea is based on the Howto called Editing Only Properties found at: http://www.zope.org/Members/rlgines/propertiesOnly ... This works all pretty well for DTML Documents as well as other objects. Now I created a ZClass (my very own :-) ) and tried to use this very manage_editPropertiesOnly thing as well. For unknown (and suspicious) reasons, a "PropertySheet" is not a "PropertyManager" although it exposes a similar interface.
Therefore, the properties in a "PropertySheet" need to be changed in a different way than that of a "PropertyManager". Look at (and adapt) "OFS.PropertySheets.PropertySheet.manage_changeProperties". Dieter
participants (2)
-
Dieter Maurer -
Holger Lehmann