[Zope] Problem: AttributeError / Job Board / Form / Submit ++
Jørgen Skogstad
jorgen.skogstad@c2i.net
Tue, 9 May 2000 23:10:45 +0200
Kindest ..
I am trying to get the article of "Job Board" up and running but
are experiencing some minor problems. I get the following error
output in the zope instance when addind objects through the public
interface (yes; proxy role is set to manager for the addForm .. )
<!--
Traceback (innermost last):
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: entry_addProcessor)
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object
(Object: entry_addProcessor)
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/OFS/DTMLMethod.py, line 150, in __call__
(Object: entry_addProcessor)
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: entry_addProcessor)
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 148, in render
(Object: manage_addProduct['Annonser'])
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval
(Object: annonse_entry_add(_.None, _, NoRedir=1))
(Info: _)
File <string>, line 0, in ?
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/OFS/DTMLMethod.py, line 146, in __call__
(Object: annonse_entry_add)
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: annonse_entry_add)
File /www1/zope/sexit-Zope-2.1.6-linux2-x86/lib/python/App/FactoryDispatcher.py, line 126, in DestinationURL
AttributeError: (see above)
-->
.. the dtml code for the form is something like;
<dtml-var standard_html_header>
<H2>Add annonse entry</H2>
<FORM action="entry_addProcessor">
<TABLE border="0">
<TR><TH>Annonse tittel</TH>
<TD><input type="text" name="tittel" size="35"></TD>
</TR>
<TR><TH>Region</TH>
<TD><input type="text" name="region" size="35"></TD>
</TR>
<TR><TH>Annonsetekst</TH>
<TD><textarea name="annonsetekst" rows="8" cols="35"></textarea>
</TR>
<TR><TH>Url til webside</TH>
<TD><input type="text" name="webside" size="35"></TD>
</TR>
<TR><TH>Email</TH>
<TD><input type="text" name="email" size="35"></TD>
</TR>
<TR><TH>Navn</TH>
<TD><input type="text" name="navn" size="35"></TD>
</TR>
<TR><TH>Annonsetype</TH>
<TD>
<SELECT size="4" name="annonsetype">
<OPTION>Par Par</OPTION>
<OPTION>Par Dame</OPTION>
<OPTION>Par Mann</OPTION>
<OPTION>Dame Par</OPTION>
<OPTION>Mann Par</OPTION>
<OPTION>Dame Dame</OPTION>
<OPTION>Mann Mann</OPTION>
</SELECT>
</TD>
</TR>
<TR><TH>Dato</TH>
<TD><INPUT TYPE="hidden" NAME="innleggingsdato"
VALUE="<dtml-var bobobase_modification_time fmt="%d/%m/%Y - %H:%M">">
<dtml-var bobobase_modification_time fmt="%d/%m/%Y - %H:%M">
</TD>
</TR>
<TR>
<TD></TD>
</TR>
<TR>
<TD><input type="submit" value=" Legg til annonse "><input type="reset" value=" Slett informasjon "></TD>
</TR>
</TABLE>
</FORM>
<dtml-var standard_html_footer>
.. the article I have followed is;
http://www.zope.org/Members/mukhsein/job_board_howto
Zope info;
Zope version: Zope 2.1.6 (binary release, python 1.5.2, linux2-x86)
Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3]
System Platform: linux2
Have anyone seen this behavioiur .. or know how to fix this? Would
really apriciate ANY input!
.. and have a reaaal nice day!
Kindest,
Jørgen Skogstad