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
thanks in advance!
regards, Klaus
What version of Zope? There was a bug in Zope when instantiating ZClasses based off certain classes like File. Try Zope 2.3.3 hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>