[Zope] Problem instantiating ZClass

Åsmund Hjulstad aasmund@polardesign.no
Tue, 23 Jan 2001 17:23:00 +0100


There appears to be something wrong... 

My config:  

Zope from CVS (2001-01-23, 16:15GMT)
Python 2.0  (yes, I know it is not supported)


I did the following:

In Control Panel, generate new product.
In the new product, Added new class (filled in the blanks).

In the root folder: Add, select the new class, entered ID, and then...

Error Type: AttributeError
                   Error Value: _setId

I have reproduced it several times, with several different CVS-versions.


Traceback (innermost last):
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line 222, 
in publish_module
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line 187, 
in publish
  File /home/ahj/polar/zope/Zope2/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
    (Object: RoleManager)
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line 171, 
in publish
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
    (Object: CDClass_add)
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line 112, 
in call_object
    (Object: CDClass_add)
  File /home/ahj/polar/zope/Zope2/lib/python/OFS/DTMLMethod.py, line 189, in 
__call__
    (Object: CDClass_add)
  File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_String.py, 
line 538, in __call__
    (Object: CDClass_add)
  File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_With.py, 
line 133, in render
    (Object: CDClass.createInObjectManager(REQUEST['id'], REQUEST))
  File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_Util.py, 
line 334, in eval
    (Object: CDClass.createInObjectManager(REQUEST['id'], REQUEST))
    (Info: CDClass)
  File <string>, line 0, in ?
  File /home/ahj/polar/zope/Zope2/lib/python/ZClasses/ZClass.py, line 522, in 
createInObjectManager
    (Object: CDClass)
AttributeError: (see above)