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)
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 )
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
This is not Python 2 related - I've added a fix for this (defining _setId in SimpleItem.Item) that should do the trick. Can you update from CVS and let me know if you still have problems? Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
On Thursday 25 January 2001 18:58, you wrote:
This is not Python 2 related - I've added a fix for this (defining _setId in SimpleItem.Item) that should do the trick. Can you update from CVS and let me know if you still have problems?
Did an update, then a rebuild ("python w_pcgi.py", necessary??), still same problem. If I check the box labeled "Include standard Zope persistent...", everything works okey. It is a bit annoying, though, that if I first check the box, then add a base class from the selection box, the checkbox is unchecked again... (check...<g>) Åsmund Hjulstad
[Åsmund Hjulstad] | I did the following: But do you have to? Have you sniffed the Python Product API? If you haven't already, check these out: <URL:http://www.zope.org/Members/maxm/HowTo/minimal_01> and then <URL:http://www.itamarst.org/learningzope/index.html>
participants (3)
-
Brian Lloyd -
Erik Enge -
Åsmund Hjulstad