[Zope] Add a ZClass-Instance with file properties
Jim Washington
jwashin@vt.edu
Mon, 16 Jul 2001 13:01:52 -0400
Klaus Herrmann wrote:
> 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
Hi, Klaus
Upgrade to 2.3.2+ or search the archives,
http://zope.nipltd.com/public/lists/zope-archive.nsf/
for "unsliceable object" for a patch.
-- Jim Washington