[Zope] Zclass and manage_clone (a bit long)
-
bak@nstp.com.my
Fri, 14 Apr 2000 17:17:14 +0800
hi all
i followed the example of cloning apps to make a product in ZCMG. i can
successfully do it.
however, when i tried doing the same inside of a ZClass, i can't clone
the builder dtml-method is the same.
<dtml-call "manage_clone(Disc,REQUEST['myid'],REQUEST)">
disc is a folder containing other objects (dtml method, dtml document, zsql
method)
the 'tree 'view:
control_panel/
products/
myproduct
myZClass
class constructor
Disc(folder)
builder
here's the error and traceback
The object Disc does not support this operation
Traceback (innermost last):
File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module
File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 179, in publish
File /usr/local/Zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
(Object: A1)
File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 165, in publish
File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: build)
File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 102, in call_object
(Object: build)
File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 150, in __call__
(Object: build)
File /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: build)
File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval
(Object: manage_clone(Disc,REQUEST['myid'],REQUEST))
(Info: manage_clone)
File <string>, line 0, in ?
File /usr/local/Zope/lib/python/OFS/CopySupport.py, line 284, in manage_clone
(Object: A1)
File /usr/local/Zope/lib/python/OFS/CopySupport.py, line 377, in _verifyObjectPaste
(Object: A1)
Copy Error: (see above)
another side note,
it seems that the distribution tab does not wok. i followed the example in
ZCMG, and exported a product. but when i uncompress the product.tar.gz into
zope, i dont see the product even after restart.
also tried exporting the product into zexp, but i cant import. got error
Error Type: TypeError
Error Value: ('len() of unsized object', , None)
traceback
thanks in advance.
------------------------------------------------------
http://www.kedai.com.my/kk
Am I Evil?