Re: [Zope] manage_renameObjects with remote ZEO

2015-05-05 Thread Sebastian Tänzer
Tres, thanks for the reply.

In my case, meta_type of both objects is „Folder“ and further checking showed 
both are OFS.Folder classes. My test ist trying to rename a folder inside 
another folder.
obj.all_meta_types() always returns an empty list, which isn’t empty when using 
the same command from inside a normal Zope2 product with the same object.

I was able to bypass the problem by writing my own rename routine using 
_setObject, _getObject but still would like to know why manage_renameObject 
fails.

Best, Sebastian

 Am 06.05.2015 um 00:52 schrieb Tres Seaver tsea...@palladion.com:
 
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 05/05/2015 01:42 PM, Sebastian Tänzer wrote:
 Hello Zope community,
 
 does anyone know how to rename a OFS.Folder object from a remote
 python script (i.e. command line)? I’m trying this via
 ZEO.ClientStorage, but it fails with The object emrenametest1/em
 does not support this operation.“ ,triggered by OFS/CopySupport.py,
 line 537, in _verifyObjectPaste.
 
 That error occurs because the object being pasted is of a meta_type which
 cannot be created within the target folder.
 
 
 Tres.
 - -- 
 ===
 Tres Seaver  +1 540-429-0999  tsea...@palladion.com
 Palladion Software   Excellence by Designhttp://palladion.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iQIcBAEBAgAGBQJVSUmpAAoJEPKpaDSJE9HYjR8P/0EJQ1qublRfPp2OGHewEezI
 mBXBdtibaXDb2VG6P4nThMFmqmbkHS/kmvGzn3grqTHIYXsevrU/NMoESMp2lrbn
 Mcfv3fx0OGp/Fuge2HuRs4M8fSV4mPP8l+0jom4LadQ+wKicFaIdjKr326CpIDH9
 Ee/vi3uWNOYCVV0OGbmsfQBSmTXrQWDbAQkyPHq5UDzSp+sQjjl3yv6oGhz4Ddip
 f9AeY2FpsY57ylEN4Y85fbA+HxSadYeKyY0zW5f8sZc+rOFi9DJyNqov2xcAiV3N
 UnN39nyfsF0ZBdu8EKXQaBKVQZO/udLjz4UY97kuatL4QBOYXEYA5u6ZLlZ1e2BF
 jH3zOqgIuPF+R5TDy2K/SQGYUE/U4VwPl+ybVgC0xCmG7VyVMIAAa6Kk5DscM+mY
 Ced9ZC+8dOXDvt6AXRJlto5kEQjdbnljZHU5syCqGNsRm31c5+6/lOh+xKMG0OWL
 e8CGsFw9xKu6nmV67YHqWgXYOOK2wARtvg3Di9gY/gW3mArybWvDUXsLNDo+Qd3F
 U15Q2MmP6tQ6n1lnJRjMff1M4MQer/E/KAG4BMXHXP4GTY56oIHrN6KDJ+Lo0X5a
 6z9LJf4A9Dk54AXMZTvXxJQHMg6OJBITiiewc4ETbuHSPM7emjwHJ1x5eRv2+cst
 Mtnm6wIjy9R4pVHxn+5m
 =9rg7
 -END PGP SIGNATURE-
 


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] manage_renameObjects with remote ZEO

2015-05-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/05/2015 01:42 PM, Sebastian Tänzer wrote:
 Hello Zope community,
 
 does anyone know how to rename a OFS.Folder object from a remote
 python script (i.e. command line)? I’m trying this via
 ZEO.ClientStorage, but it fails with The object emrenametest1/em
 does not support this operation.“ ,triggered by OFS/CopySupport.py,
 line 537, in _verifyObjectPaste.

That error occurs because the object being pasted is of a meta_type which
cannot be created within the target folder.


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJVSUmpAAoJEPKpaDSJE9HYjR8P/0EJQ1qublRfPp2OGHewEezI
mBXBdtibaXDb2VG6P4nThMFmqmbkHS/kmvGzn3grqTHIYXsevrU/NMoESMp2lrbn
Mcfv3fx0OGp/Fuge2HuRs4M8fSV4mPP8l+0jom4LadQ+wKicFaIdjKr326CpIDH9
Ee/vi3uWNOYCVV0OGbmsfQBSmTXrQWDbAQkyPHq5UDzSp+sQjjl3yv6oGhz4Ddip
f9AeY2FpsY57ylEN4Y85fbA+HxSadYeKyY0zW5f8sZc+rOFi9DJyNqov2xcAiV3N
UnN39nyfsF0ZBdu8EKXQaBKVQZO/udLjz4UY97kuatL4QBOYXEYA5u6ZLlZ1e2BF
jH3zOqgIuPF+R5TDy2K/SQGYUE/U4VwPl+ybVgC0xCmG7VyVMIAAa6Kk5DscM+mY
Ced9ZC+8dOXDvt6AXRJlto5kEQjdbnljZHU5syCqGNsRm31c5+6/lOh+xKMG0OWL
e8CGsFw9xKu6nmV67YHqWgXYOOK2wARtvg3Di9gY/gW3mArybWvDUXsLNDo+Qd3F
U15Q2MmP6tQ6n1lnJRjMff1M4MQer/E/KAG4BMXHXP4GTY56oIHrN6KDJ+Lo0X5a
6z9LJf4A9Dk54AXMZTvXxJQHMg6OJBITiiewc4ETbuHSPM7emjwHJ1x5eRv2+cst
Mtnm6wIjy9R4pVHxn+5m
=9rg7
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] manage_renameObjects with remote ZEO

2015-05-05 Thread Sebastian Tänzer
Hello Zope community,

does anyone know how to rename a OFS.Folder object from a remote python script 
(i.e. command line)? I’m trying this via ZEO.ClientStorage, but it fails with 
The object emrenametest1/em does not support this operation.“ ,triggered 
by OFS/CopySupport.py, line 537, in _verifyObjectPaste.

Full test case code is at http://pastebin.com/j9HY3PVJ

At first I thought this is because of a missing REQUEST and/or authentication 
problem, as _verifyObjectPaste does some security checks or else fails with 
this message. Still, using makerequest and newSecurityManager doesn’t work.

Any help would be greatly appreciated :-)

Best
Sebastian

-
tänzermedien GmbH - Agentur für Online-Medien
Kekuléstr. 39 | 53115 Bonn, Germany
E-Mail: s...@taenzer.me | Web: http://www.taenzer.me  
Tel.: 0228-304134-0 | Fax.: 0228-304134-99
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )