[Zope] What's wrong with this DTML?
Kevin Dangoor
kid@kendermedia.com
Mon, 03 May 1999 16:27:42 -0400
Hi,
This seemed really simple, but I must be doing something wrong. I
have a Folder with a property called "email". I'm trying to make a form
that would change this property. The form does a POST to folder/postit.
postit includes the following line:
<!--# call "manage_changeProperty(email='kid@kendermedia.com')"-->
Ideally, this would change the property to what was entered on the form,
but since I was having trouble I decided to go with a static value...
When I post the form and the method is called, I get the following
traceback:
Traceback (innermost last):
File /usr/local/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line
877, in publish_module
File /usr/local/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line
590, in publish
(Info: /byproducts/incoming/925660874/postit)
File /usr/local/Zope-1.10.2-src/lib/python/OFS/DTMLMethod.py, line
155, in __call__
(Object: postit)
File /usr/local/Zope-1.10.2-src/lib/python/OFS/DTMLMethod.py, line
151, in __call__
(Object: postit)
File
/usr/local/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_String.py,
line 513, in __call__
(Object: postit)
File
/usr/local/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Util.py, line
266, in eval
(Object: manage_changeProperty(email='kid@kendermedia.com'))
File <string>, line 0, in ?
NameError: (see above)
The Folder *does* currently have a property called "email".
What am I doing wrong?
Thanks,
Kevin