[Zope-dev] help with propertysheets
Jeff
jeff@hi-privacy.net
Tue, 21 Aug 2001 14:54:42 -0500
Help!!
I am new to file based products and hope this is an easy problem...
I'm trying to add a PropertySheet to a class.
The following is the class def:
class CMSBase(PropertySheets.PropertySheets,
ObjectManager.ObjectManager,
PropertyManager.PropertyManager,
SimpleItem.SimpleItem):
I am not sure what to pass as 'ns' in the following call, I have tried
several different things all with the same error.
The call:
self.propertysheets.manage_addPropertySheet(id='Type', ns=globals())
The error:
Error Type: TypeError
Error Value: bad operand type(s) for +
.....
snip
.....
Traceback (innermost last):
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 187, in
publish
File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 171, in
publish
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: manage_addWebBase)
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: manage_addWebBase)
File C:\Program Files\WebSite\lib\python\Products\CMSCore\WebBase.py, line
53, in manage_addWebBase
File C:\Program Files\WebSite\lib\python\Products\CMSCore\WebBase.py, line
42, in __init__
(Object: Traversable)
File C:\Program Files\WebSite\lib\python\Products\CMSCore\CMSBase.py, line
55, in InitCmsBase
(Object: Traversable)
File C:\Program Files\WebSite\lib\python\OFS\PropertySheets.py, line 672,
in manage_addPropertySheet
(Object: Traversable)
File C:\Program Files\WebSite\lib\python\OFS\PropertySheets.py, line 677,
in addPropertySheet
(Object: Traversable)
TypeError: (see above)
Thanks for the help!
Jeff