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
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 `------------------>
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
participants (3)
-
Casey Duncan -
Jim Washington -
Klaus Herrmann