Hello, Thanks for the useful explanations before, I now have another small problem: this produces a syntax error and I am really not sure why: <dtml-call "['parent_id'].manage_change properties ({ 'children' : children })"> The second children variable has been passed to the method by a form. parent_id is a variable that contains the name of an instance. thanks again for any help. PS if it is really bad to post newbie questions like this can you tell me, or point me somewhere more appropriate? josh oN
Scavenging the mail folder uncovered josh on's letter:
Hello,
Thanks for the useful explanations before, I now have another small problem:
this produces a syntax error and I am really not sure why:
<dtml-call "['parent_id'].manage_change properties ({ 'children' : children })">
the ['parent..] is a subscript to... nothing! try to change it to: _['parent_id'] ciao, federico -- Federico Di Gregorio MIXAD LIVE System Programmer fog@mixadlive.com Debian GNU/Linux Developer & Italian Press Contact fog@debian.org Nobody will ever need more than 640k RAM! -- Bill Gates, 1981 Windows 95 needs at least 8 MB RAM. -- Bill Gates, 1996 Nobody will ever need Windows 95. -- logical conclusion
<dtml-call "['parent_id'].manage_change properties ({ 'children' : children })">
the ['parent..] is a subscript to... nothing! try to change it to:
thanks for that I noticed an even dumber thing: it should've read manage_changeProperties I have yet another stupid question and realise that I need to go through some more examples, I have been on zope.org for a while and lots of things nearly answer my questions but I am not bright enough to fill in the gaps! Zope really makes me feel dumb! So one last question for the night. I have a folder with an property called "firstchildren" (int) that I am using as a variable The folder is called "addaline", inside that folder is another folder called "lines". I want to have a method in "lines" that updates the value of "firstchildren". I have tried: <dtml-call "REQUEST.set('firstchildren', firstchildren+1)"> and since then tried using Parent and manage_editProperties... I just can't get it right! Is there a good example that I could look at, I am not even quite sure what to search for on zope.org thanks so much, apologies if this is annoying, I'll calm down soon I am sure! josh oN
PS if it is really bad to post newbie questions like this can you tell me, or point me somewhere more appropriate?
I believe the zope-dev list is meant more for development of Zope itself, and the general zope list is more for development in Zope, i.e. Zope applications. --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998
participants (3)
-
fog@mixadlive.com -
Jonothan Farr -
josh on