[Zope] Add a ZClass-Instance with file properties
Klaus Herrmann
Klaus Herrmann <klaus.herrmann@goelz.com>
16 Jul 2001 18:45:51 CEST
Hi!
I have a ZClass with File properties, but i can't create objects of that type.
i added a file selection to the addForm:
<input type=file name="file" size=30>
but when i click "Add", i get an error message:
Error Type: TypeError
Error Value: unsliceable object
..
File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in
eval
(Object: dataFile.createInObjectManager(REQUEST['id'], REQUEST))
(Info: REQUEST)
File <string>, line 0, in ?
what is happening? the code in add is absoulutely normal:
<dtml-with "dataFile.createInObjectManager(REQUEST['id'], REQUEST)">
any ideas? do i have to do anything else?
Zope is 2.3.1
thanks in advance!
regards,
Klaus
--
Klaus Herrmann <klaus.herrmann@goelz.com>
Goelz & Schwarz GmbH, Munich
www.goelz.com
phone:+49 - (0)89 - 544 67 0 22
fax: +49 - (0)89 - 544 67 0 10