[Zope] Cloning a ZClass-Instance

Sven Hohage sven.hohage@zeitspringer.de
Mon, 13 Nov 2000 10:46:25 +0100


Hallo Chris,
my reply is late but the problem is already not solved.
I've build a simple ZClass 'News' with base-classes 'ZObject,
ZObjectManager'.
I haven't changed the permission-settings in the product.
The script working on the objects is this:

--------------------------
<dtml-in "objectValues(['news'])">
<dtml-let x="_.getitem('sequence-item')">
 <dtml- call "manage_clone(x,'test',REQUEST)"> 

</dtml-let>
</dtml-in>
--------------------------

The response of Dieter Maurer was, that it is a permission problem
-->"Either you are not allowed to call the ZClass constructor
  at the destination,

  or you are not allowed to access the object to be cloned
  at the destination."
I'm trying to execute the operation with the role 'manager'


That's the traceback:
----------------------
The object holle does not support this operation 
                              
Traceback (innermost last):
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Zop\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Zop\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: NewsPruefer)
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 112, in call_object
    (Object: NewsPruefer)
  File C:\Zop\lib\python\OFS\DTMLMethod.py, line 167, in __call__
    (Object: NewsPruefer)
  File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
    (Object: NewsPruefer)
  File C:\Zop\lib\python\DocumentTemplate\DT_In.py, line 607, in
renderwob
    (Object: objectValues(['news']))
  File C:\Zop\lib\python\DocumentTemplate\DT_Let.py, line 147, in render
    (Object: x="_.getitem('sequence-item')")
  File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval
    (Object: manage_clone(x,'versuch',REQUEST))
    (Info: REQUEST)
  File <string>, line 0, in ?
  File C:\Zop\lib\python\OFS\CopySupport.py, line 321, in manage_clone
    (Object: holle)
  File C:\Zop\lib\python\OFS\CopySupport.py, line 402, in
_verifyObjectPaste
    (Object: holle)
Copy Error: (see above)

------------------------

Thanks and Bye
             Sven