[Zope] mange_changeProperities external method

M.J. Stahl mjstahl@bizux.net
Mon, 13 Mar 2000 11:34:14 -0500


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