Re: [Zope] Cloning a ZClass-Instance
Thank you Dieter for your reply, but yout suggestion doesn't solve the problem. This is the traceback: "The object 973677459 does not support this operation " This means to me that x is an instance. That's my script-> <dtml-in "objectValues(['news'])"> <dtml-let x="_.getitem('sequence-item')"> <dtml-if "Jetzt.isCurrentDay()"> <dtml- call "manage_clone(x,'versuch', [REQUEST])"> Kopiert!!! <dtml-else> <dtml- var text> </dtml-if> </dtml-let> </dtml-in> -- Sent through GMX FreeMail - http://www.gmx.net
brocken22@gmx.de writes:
Thank you Dieter for your reply, but yout suggestion doesn't solve the problem. Sad to hear.
This is the traceback: "The object 973677459 does not support this operation " This means to me that x is an instance. I agree. Though, your news items have strange id's.
That's my script-> <dtml-in "objectValues(['news'])"> <dtml-let x="_.getitem('sequence-item')">
<dtml-if "Jetzt.isCurrentDay()"> <dtml- call "manage_clone(x,'versuch', [REQUEST])"> You should not enclose "REQUEST" with "[...]", though this is *NOT* your current problem.
I looked at the code of "OFS.CopySupport.manage_clone" and apparently, one of your "news" items (the one with id '973677459') lets its "cb_isCopyable" return false. Unfortunately, I have no idea why. Dieter
Dieter Maurer wrote:
I looked at the code of "OFS.CopySupport.manage_clone" and apparently, one of your "news" items (the one with id '973677459') lets its "cb_isCopyable" return false. Unfortunately, I have no idea why.
What product is being used to create these news items? cheers, Chris
participants (3)
-
brocken22@gmx.de -
Chris Withers -
Dieter Maurer