Re: [Zope] copy/paste python product not working
Hi Tom, check for all of your product-classes, if a meta-type is defined and all of these meta-types are declared in the meta_types tuple in the products __init__.py I hope this helps christoph
From: "Tom Cameron" <tom@mooball.com> Subject: [Zope] copy/paste python product not working
I am building several python products.
They are all subclassed off: Implicit,Persistent,RoleManager,Item,PropertyManager
I find that some products can be cut and pasted with no problem, and some products return the error:
Traceback (innermost last): File C:\ZopeSite\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\ZopeSite\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\ZopeSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\ZopeSite\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\ZopeSite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_pasteObjects) File C:\ZopeSite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_pasteObjects) File C:\ZopeSite\lib\python\OFS\CopySupport.py, line 216, in manage_pasteObjects (Object: Traversable) File C:\ZopeSite\lib\python\OFS\CopySupport.py, line 444, in _verifyObjectPaste (Object: Traversable) Copy Error: (see above)
I cant yet work out what the reason is. The products are all very similar, so it is not obvious to me what the difference is.
Any hints would be appreciated
TIA Tom
Thanks, All the products have meta_types, but I did not declare them in the __init__.py file because I dont want them visible in standard zope folders. I specified them explicitly in the all_meta_types of the container. But that is not the problem becaues I have 4 products all, almost identical and two will copy/paste and two will not. some methods are different, but I cant work out what affects the ability to copy/paste. Tom => -----Original Message----- => From: wierling@ratte.molgen.mpg.de => [mailto:wierling@ratte.molgen.mpg.de]On Behalf Of Christoph Wierling => Sent: Monday, 24 September 2001 3:28 AM => To: tom@mooball.com => Cc: zope@zope.org => Subject: Re: [Zope] copy/paste python product not working => => => Hi Tom, => check for all of your product-classes, if a meta-type is defined and all => of these meta-types are declared in the meta_types tuple in the products => __init__.py => => I hope this helps => => christoph => => => > From: "Tom Cameron" <tom@mooball.com> => > Subject: [Zope] copy/paste python product not working => > => > I am building several python products. => > => > They are all subclassed off: => > Implicit,Persistent,RoleManager,Item,PropertyManager => > => > I find that some products can be cut and pasted with no => problem, and some => > products return the error: => > => > Traceback (innermost last): => > File C:\ZopeSite\lib\python\ZPublisher\Publish.py, line 223, in => > publish_module => > File C:\ZopeSite\lib\python\ZPublisher\Publish.py, line 187, => in publish => > File C:\ZopeSite\lib\python\Zope\__init__.py, line 221, in => > zpublisher_exception_hook => > (Object: Traversable) => > File C:\ZopeSite\lib\python\ZPublisher\Publish.py, line 171, => in publish => > File C:\ZopeSite\lib\python\ZPublisher\mapply.py, line 160, in mapply => > (Object: manage_pasteObjects) => > File C:\ZopeSite\lib\python\ZPublisher\Publish.py, line 112, in => > call_object => > (Object: manage_pasteObjects) => > File C:\ZopeSite\lib\python\OFS\CopySupport.py, line 216, in => > manage_pasteObjects => > (Object: Traversable) => > File C:\ZopeSite\lib\python\OFS\CopySupport.py, line 444, in => > _verifyObjectPaste => > (Object: Traversable) => > Copy Error: (see above) => > => > I cant yet work out what the reason is. The products are all => very similar, => > so it is not obvious to me what the difference is. => > => > Any hints would be appreciated => > => > TIA => > Tom => > => =>
participants (2)
-
Christoph Wierling -
Tom Cameron