Renaming ZClass Instance problem.
Hi, Zope List. I've searched the archives for an answer to this niggly little problem I've found, but seen nothing which answers it, so I'd thought I'd ask here. Please excuse if I'm doing something wrong - I'm a relatively new user. I'm currently running the binary distribution of Zope downloaded from www.zope.org for Solaris under Solaris 2.7. I've created a new Product, and placed a single ZClass in it. The ZClass only inherits from ZObject. I can create an instance of this class (called adsl), but when I try a rename operation (renaming it to testProduct), The instance is in /talkbacktest in the zope tree, btw. I get the following error and traceback: The object adsl does not support this operation Traceback (innermost last): File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/ZPublisher/Publish.p y, line 150, in publish_module File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/ZPublisher/Publish.p y, line 114, in publish File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: talkbacktest) File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/ZPublisher/Publish.p y, line 98, in publish File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py , line 88, in mapply (Object: manage_renameObjects) File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/ZPublisher/Publish.p y, line 39, in call_object (Object: manage_renameObjects) File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/OFS/CopySupport.py, line 215, in manage_renameObjects (Object: talkbacktest) File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/OFS/CopySupport.py, line 230, in manage_renameObject (Object: talkbacktest) File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/OFS/CopySupport.py, line 373, in _verifyObjectPaste (Object: talkbacktest) Copy Error: (see above) Does anyone have any ideas what is causing this? I've followed the ZClass tutorial in the Zope Book, and that does exactly the same, so I don't think it's anything I'm doing wrong. Any help would be gratefully received! Regards, Mark Godfrey.
Mark Godfrey writes:
... Please excuse if I'm doing something wrong - I'm a relatively new user.
I'm currently running the binary distribution of Zope downloaded from www.zope.org for Solaris under Solaris 2.7.
I've created a new Product, and placed a single ZClass in it. The ZClass only inherits from ZObject.
I can create an instance of this class (called adsl), but when I try a rename operation (renaming it to testProduct), The instance is in /talkbacktest in the zope tree, btw. ... File /usr/local/Zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/OFS/CopySupport.py, line 373, in _verifyObjectPaste (Object: talkbacktest) Copy Error: (see above) I looks at the source (OFS/CopySupport.py line 373.
Unfortunatly, I have a slightly different version installed than you have. As a consequence, my line numbers differ a bit. It seems, however, as if the object in the clipboard were not accessible or the current user were not allowed to call the object's constructor. Dieter
participants (2)
-
Dieter Maurer -
Mark Godfrey