Copy objects from ZClass subfolder to instance?
Hello list, I have a ZClass with a subfolder "templates". On creation of an instance, I'd like to copy all objects from the zClass templates folder to the instance. I could not get it to work, always got an Unauthorized when trying to access the "templates" folder, although I activated the "Access contents information" and "Copy or Move" permissions... Any help would be appreciated! TIA -- Lars Heber T-Systems GEI GmbH Hausanschrift: Clausstrasse 3, 09126 Chemnitz Postanschrift: Clausstrasse 3, 09126 Chemnitz Telefon : (+49 371) 5359-271 Fax : (+49 371) 5359-133 E-Mail : Lars.Heber@t-systems.com Internet: http://www.t-systems.de
Lars Heber wrote at 2003-2-7 11:17 +0100:
I have a ZClass with a subfolder "templates". On creation of an instance, I'd like to copy all objects from the zClass templates folder to the instance.
I could not get it to work, always got an Unauthorized when trying to access the "templates" folder, although I activated the "Access contents information" and "Copy or Move" permissions... Your ZInstance, too, has the "templates" folder. Use it as the copy source.
Dieter
Dieter Maurer wrote:
Lars Heber wrote at 2003-2-7 11:17 +0100:
I have a ZClass with a subfolder "templates". On creation of an instance, I'd like to copy all objects from the zClass templates folder to the instance.
I could not get it to work, always got an Unauthorized when trying to access the "templates" folder, although I activated the "Access contents information" and "Copy or Move" permissions... Your ZInstance, too, has the "templates" folder. Use it as the copy source.
Thanks for that hint, I already tried this, and it did not work :-( But now, I've got it, another weird thing on Zope...: Although there's the new permission "Copy or Move" you nethertheless need the permission "View management screens" to access "manage_copyObjects"... I just verified that this not only happens with ZClasses but also with normal folders. The old question: feature or bug? -- Lars Heber T-Systems GEI GmbH Hausanschrift: Clausstrasse 3, 09126 Chemnitz Postanschrift: Clausstrasse 3, 09126 Chemnitz Telefon : (+49 371) 5359-271 Fax : (+49 371) 5359-133 E-Mail : Lars.Heber@t-systems.com Internet: http://www.t-systems.de
participants (2)
-
Dieter Maurer -
Lars Heber