[Zope] OFS::Image based Zclass creation error

Mikhail miha@instock.ru
Wed, 13 Feb 2002 12:35:02 +0300


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?


-- 
WBR, Mikhail
ZSP Instock (http://www.instock.ru/)