Commit ceec0bef authored by Amos Latteier's avatar Amos Latteier

Fixed a bug in the copy machinery which prevented instances of ZClasses...

Fixed a bug in the copy machinery which prevented instances of ZClasses defined in the methods of another ZClass from being pasted and renamed.
parent 297d8370
......@@ -83,7 +83,7 @@
#
##############################################################################
__doc__="""Copy interface"""
__version__='$Revision: 1.39 $'[11:-2]
__version__='$Revision: 1.40 $'[11:-2]
import sys, string, Globals, Moniker, tempfile, ExtensionClass
from marshal import loads, dumps
......@@ -361,6 +361,10 @@ class CopyContainer(ExtensionClass.Base):
try: meth=getattr(factory, factory.initial)
except: meth=factory
# if we still have a factory, get the add method
try: meth=getattr(meth, meth.initial)
except: pass
if hasattr(meth, '__roles__'):
roles=meth.__roles__
user=REQUEST.get('AUTHENTICATED_USER', None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment