[Zope] Copy of open-box product
Vital Lobachevsky
tick at web.vi
Sat Jan 8 15:43:09 EST 2005
Andreas Jung wrote:
>
>
> --On Samstag, 8. Januar 2005 22:21 Uhr +0200 Vital Lobachevsky
> <tick at web.vi> wrote:
>
>> Andreas Jung wrote:
>>
>>>
>>>
>>> --On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung
>>> <lists at andreas-jung.com> wrote:
>>>
>>>> What means an exact copy? And why? You idea some not make much sense.
>>>>
>>>
>>> It might make sense for ZClasses or so...anyway...you should provide a
>>> traceback if you want help.
>>> Without a traceback your report is not much worth.
>>
>>
>> Yes, I have a lot of ZClasses in my product and need to re-use it for new
>> product.
>>
>> Traceback (innermost last):
>> File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 150,
>> in publish_module
>> File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 114,
>> in publish
>> File /usr/local/zope/2.5.1/lib/python/Zope/__init__.py, line 159, in
>> zpublisher_exception_hook
>> (Object: Products)
>> File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 98,
>> in publish
>> File /usr/local/zope/2.5.1/lib/python/ZPublisher/mapply.py, line 88,
>> in mapply
>> (Object: manage_pasteObjects)
>> File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 39,
>> in call_object
>> (Object: manage_pasteObjects)
>> File /usr/local/zope/2.5.1/lib/python/OFS/CopySupport.py, line 160, in
>> manage_pasteObjects
>> (Object: Products)
>> File /usr/local/zope/2.5.1/lib/python/OFS/ObjectManager.py, line 272,
>> in _setObject
>> (Object: Products)
>> File /usr/local/zope/2.5.1/lib/python/OFS/ObjectManager.py, line 280,
>> in manage_afterAdd
>> File /usr/local/zope/2.5.1/lib/python/ZClasses/ZClass.py, line 420, in
>> manage_afterAdd
>> File /usr/local/zope/2.5.1/lib/python/ZClasses/ZClass.py, line 374, in
>> _register
>> Duplicate Class Ids: (see above)
>
>
> This looks as if you can't create two identical copy obiviously this way
> likely because
> the class ids must be unique. No further idea about ZClasses. Maybe you
> can create a new
> product instance and then copy file by file using cut&paste...
I doesn't work too. When I'm trying to copy my ZClasses it fails with
CopyError: The item ... does not support this operation.
--
-tick
More information about the Zope
mailing list