Is it possible to create a copy of open-box product in /Control_Panel/Products? It fails with error: Error Type: Duplicate Class Ids Error Value: None Zope 2.5.1 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2 TIA, -- -tick
--On Samstag, 8. Januar 2005 21:54 Uhr +0200 Vital Lobachevsky <tick@web.vi> wrote:
Is it possible to create a copy of open-box product in /Control_Panel/Products? It fails with error:
Error Type: Duplicate Class Ids Error Value: None
What are trying to do??
Zope 2.5.1 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2 ^^^^^^^^^^ that's a museum release btw.
-aj
Andreas Jung wrote:
--On Samstag, 8. Januar 2005 21:54 Uhr +0200 Vital Lobachevsky <tick@web.vi> wrote:
Is it possible to create a copy of open-box product in /Control_Panel/Products? It fails with error:
Error Type: Duplicate Class Ids Error Value: None
What are trying to do??
I want exact copy of my product. I'm trying copy-paste in /Control_Panel/Products folder. -- -tick
--On Samstag, 8. Januar 2005 22:06 Uhr +0200 Vital Lobachevsky <tick@web.vi> wrote:
Andreas Jung wrote:
--On Samstag, 8. Januar 2005 21:54 Uhr +0200 Vital Lobachevsky <tick@web.vi> wrote:
Is it possible to create a copy of open-box product in /Control_Panel/Products? It fails with error:
Error Type: Duplicate Class Ids Error Value: None
What are trying to do??
I want exact copy of my product. I'm trying copy-paste in /Control_Panel/Products folder.
What means an exact copy? And why? You idea some not make much sense. -aj
--On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung <lists@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. -aj
Andreas Jung wrote:
--On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung <lists@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) -- -tick
--On Samstag, 8. Januar 2005 22:21 Uhr +0200 Vital Lobachevsky <tick@web.vi> wrote:
Andreas Jung wrote:
--On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung <lists@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... -aj
Andreas Jung wrote:
--On Samstag, 8. Januar 2005 22:21 Uhr +0200 Vital Lobachevsky <tick@web.vi> wrote:
Andreas Jung wrote:
--On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung <lists@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
Am Samstag, den 08.01.2005, 22:43 +0200 schrieb Vital Lobachevsky: ...
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.
Well, this does not make much sense, the ZClass id is the class name it represents. Its a bit tricky anyway and most people will tell you not touch zclasses at all. Why dont you derive from the class? This is after all, what OOP is all about... Regards Tino
Tino Wildenhain wrote at 2005-1-8 22:57 +0100:
... Well, this does not make much sense, the ZClass id is the class name it represents. Its a bit tricky anyway and most people will tell you not touch zclasses at all. Why dont you derive from the class? This is after all, what OOP is all about...
Be careful! There is a known bug when a ZClass inherits from a ZClass defined in a different product. Everything works fine as long as you do not export/import the product. When you do, the inheritance gets broken. -- Dieter
Vital Lobachevsky wrote at 2005-1-8 21:54 +0200:
Is it possible to create a copy of open-box product in /Control_Panel/Products? It fails with error:
Error Type: Duplicate Class Ids Error Value: None
It is provided the product does not contain ZClasses. The code for a ZClass is made available via a pseudo module whose name is derived for the ZClass's class id. Therefore, there can be no two ZClasses with the same class id. -- Dieter
participants (4)
-
Andreas Jung -
Dieter Maurer -
Tino Wildenhain -
Vital Lobachevsky