-----Original Message----- From: josh on <josh@zesty.com> To: zope@zope.org <zope@zope.org> Date: donderdag 11 mei 2000 20:42 Subject: [Zope] manage_changeProperties
sorry for spamming the list with loser questions but this one has had me stumped for hours and I am not even sure what to look for anymore:
<dtml-call "z958063364.manage_changeProperties({'children' : 90})">
this line is in a dtml method in a folder with a lot of instances of a class. one instance is: z958063364 the class has a property sheet with a property called children I want to change its value.
Eventually I want to have it dynamically fill in the gaps so that it will calll any particular instance with something like this:
<dtml-call "_['parent_id'].manage_changeProperties({'children' : gchildren+12})">
have you tried (untested, I don't quite understand what you try to do) <dtml-call "REQUEST.set('gchildren', gchildren+12)"> <dtml-call "_.getitem(parent_id).manage_changeProperties(REQUEST)"> also see http://zdp.zope.org/projects/zsnippet/snippets/DTMLContent/getobject_by_refe rence Rik
Rik, thanks, yeah that is similar to what I want. In fact basically it, except it doesn't work for me. I want to change the value of a property of an instance. I think I am addressing it properly, and it doesn't come up with any errors, but when I check the property it hasn't changed. could this be to do with permissions? or would I get an error then? josh
have you tried (untested, I don't quite understand what you try to do)
<dtml-call "REQUEST.set('gchildren', gchildren+12)"> <dtml-call "_.getitem(parent_id).manage_changeProperties(REQUEST)">
also see
http://zdp.zope.org/projects/zsnippet/snippets/DTMLContent/getobject_by_refe
rence
Rik
_______________________________________________ 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 Thu, 11 May 2000, josh on wrote:
could this be to do with permissions? or would I get an error then?
You should get an error if it is a permissions problem. Did you look around to see if you've changed the property on some other object? --RDM
participants (3)
-
josh on -
R. David Murray -
Rik Hoekstra