Re: [Zope] mange_changeProperities external method
The reason I was using the external method was to avoid the user from witnessing any use of the management interface. At 11:26 AM 3/13/00 -0500, you wrote:
You can do it in a DTML Method (very similar in an external method too) like:
<dtml-call "MyZclassInstance.propertysheets.Mypropertysheet.manage_changeProperties(RE QUEST)">
Pavlos
On Mon, 13 Mar 2000, M.J. Stahl wrote:
I have an a form in which the user can edit an instance of a ZClass and resubmit the data. This data is to be used instead of the data that is currently listed within the properties of said object.
After submitting the change I get this error:
Error Type: AttributeError Error Value: 'string' object has no attribute '_properties'
The code that it is referring to is:
def editTaskProperty(self,REQUEST,RESPONSE): taskobject = self.taskstorage.REQUEST['task_id']
for p in taskobject._properties: taskobject._setPropValue(p['task_title'], REQUEST['title'])
Can anyone give me any insight as to how the proper method of changing the properties listed on an instance without the user catching any wind of the management interface?
Best regards,
Mark
_______________________________________________ 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 )
On Mon, 13 Mar 2000, M.J. Stahl wrote:
The reason I was using the external method was to avoid the user from witnessing any use of the management interface.
<dtml-call "MyZclassInstance.propertysheets.Mypropertysheet.manage_changeProperties(RE QUEST)">
The call Pavlos gave does not visibly expose the user to the management interface. It does assume that the variables to be changed were supplied in a form that caused this method to be called, but that can be your own tailored form. Or if you get the values some other way, you should be able to pass them as args to the call. --RDM
participants (2)
-
M.J. Stahl -
R. David Murray