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
Tom Cameron writes:
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 ... 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. It is even more difficult for us as we do not know your products *AND* you have hidden an essential piece of information:
the error value (refered to in the "see above"). Dieter
Dieter, there was no error value - all I got was "The object xxxx does not support this operation" and the trace below. I created the object the same way as I did 4 other objects and this is the only one that cant be copied/pasted or renamed. I could send you all my code but I did not want you to have go through all the code for me. I just want hints as to what affects the ability to copy/paste an object. Tom => -----Original Message----- => From: Dieter Maurer [mailto:dieter@handshake.de] => Sent: Monday, 24 September 2001 3:28 AM => To: Tom Cameron => Cc: zope@zope.org => Subject: Re: [Zope] copy/paste python product not working => => => Tom Cameron writes: => > 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 => > ... => > 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. => It is even more difficult for us as we do not know your products => *AND* you have hidden an essential piece of information: => => the error value (refered to in the "see above"). => => => Dieter =>
Tom, Tom Cameron writes:
I could send you all my code but I did not want you to have go through all the code for me. I just want hints as to what affects the ability to copy/paste an object. Look at the last line of your traceback. It tells you the function, the filename and the line number where the exception has been raised. Look in the code near this point. It should tell you the reason to reject copying/pasting your object.
Dieter
participants (3)
-
Dieter Maurer -
Tom Cameron -
Tom Cameron