[Zope] Unable to instantiate ZClass

Åsmund Hjulstad aasmund@polardesign.no
Thu, 25 Jan 2001 14:32:52 +0100


My previous mail is further down.

I have now done a fresh install from the CVS, after the beta3 release. 

If this problem is because I am using python 2.0, then I hope someone will 
fix this. If not, am I doing something wrong.

Is everybody else using python 1.5.2?

Asmund Hjulstad



On Tuesday 23 January 2001 17:23, I wrote:
> 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)
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )