[Zope] OFS::Image based Zclass creation error
Mikhail
miha@instock.ru
Wed, 13 Feb 2002 13:49:00 +0300
I add tite and (after new error) file fields.
Can manage, but cannt see image (empty space with IE red cross).
I change my OptomagTovar_addForm=20
<form action=3D"OptomagTovar_add" enctype=3D"multipart/form-data">
Id <input type=3Dtext name=3Did>
Title <input type=3Dtext name=3D"title">
Image <input type=3Dfile name=3D"file">
<input type=3Dsubmit value=3D" Add ">
</form>
--=20
WBR, Mikhail
ZSP Instock (http://www.instock.ru/)
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of
Arnt-Hugo Nilsen
Sent: Wednesday, February 13, 2002 1:08 PM
To: zope@zope.org
Subject: SV: [Zope] OFS::Image based Zclass creation error
Seems like you're not supplying a title
Do you have a form element named "title" in your OptomagTovar_addForm
method?
Ex: <input type=3D"hidden" name=3D"title" value=3D"myTitle">
Or use something like:
OptomagTovar.createInObjectManager(REQUEST['id'],title=3D'myTitle',
REQUEST)
-----Opprinnelig melding-----
Fra: zope-admin@zope.org [mailto:zope-admin@zope.org] P=E5 vegne av
Mikhail
Sendt: 13. februar 2002 10:35
Til: zope@zope.org
Emne: [Zope] OFS::Image based Zclass creation error
Good day!
I'm try to create OFS::Image based product.
My actions:
1. Crate product Optomag
2. Add Zclass OptomagTovar based on OFS::Image (with Include standard
Zope persistent object base classes) 3. In Zclass OptomagTovar add
Property Sheets 'tovar' 4. add property 'articul' (string type)
When try to add 'OptomagTovar' with any ID receive:
Error Type: TypeError
Error Value: argument title was ommitted
And traceback:
Traceback (innermost last):
File D:\Zope\lib\python\ZPublisher\Publish.py, line 150, in
publish_module
File D:\Zope\lib\python\ZPublisher\Publish.py, line 114, in publish
File D:\Zope\lib\python\Zope\__init__.py, line 158, in
zpublisher_exception_hook
(Object: OptomagTovar_factory)
File D:\Zope\lib\python\ZPublisher\Publish.py, line 98, in publish
File D:\Zope\lib\python\ZPublisher\mapply.py, line 88, in mapply
(Object: OptomagTovar_add)
File D:\Zope\lib\python\ZPublisher\Publish.py, line 39, in call_object
(Object: OptomagTovar_add)
File D:\Zope\lib\python\OFS\DTMLMethod.py, line 127, in __call__
(Object: OptomagTovar_add)
File D:\Zope\lib\python\DocumentTemplate\DT_String.py, line 473, in
__call__
(Object: OptomagTovar_add)
File D:\Zope\lib\python\DocumentTemplate\DT_With.py, line 61, in
render
(Object: OptomagTovar.createInObjectManager(REQUEST['id'], REQUEST))
File D:\Zope\lib\python\DocumentTemplate\DT_Util.py, line 159, in eval
(Object: OptomagTovar.createInObjectManager(REQUEST['id'], REQUEST))
(Info: REQUEST)
File <string>, line 2, in f
File D:\Zope\lib\python\ZClasses\ZClass.py, line 450, in
createInObjectManager
(Object: OptomagTovar)
File D:\Zope\lib\python\ZPublisher\mapply.py, line 83, in mapply
(Object: OptomagTovar)
File D:\Zope\lib\python\ZPublisher\mapply.py, line 21, in
default_missing_name
TypeError: (see above)
Who can explain me what is wrong?
--=20
WBR, Mikhail
ZSP Instock (http://www.instock.ru/)
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -=20
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -=20
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )