[Zope] change permission of image

Andreas Jung lists at zopyx.com
Tue Nov 16 08:47:35 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Harley wrote:
> Just want to find out how to change the permissions of a file/image 
> using a python script and can't see this in the documentation. Any ideas?
> 
>

obj.manage_permission(permission, roles, acquire).

Check the AccessControl API.

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJM4ot3AAoJEADcfz7u4AZjkmILwM+gL8BhahLdDTUYvPvl99YG
gAunc2MhJxohTgz3Sk0BtrHAFHEYQqnfRBS0OMEQmZYKgJ0ysewKBX0CQ9yhwokL
SyHMdROLN6+v2e1knE8hp/98ZM4uAZSP1piFEoZwVYlO8VgLruKfH0CcmxHY4QZn
GJs/TC4kOf0MH2u0Aqc0LxgAh02cOksx7cZYJHAuccPNVviK2Uia3ie+6RM0gmtv
KhZ9EQxEZ9Xr1y++BgifqI547Nvp63iHzXpJ/ckeUG9VHJFo8i+b1HVCe5DMKC1Q
Sx1vSwuE0hqRvgs0whVNQkYIM4Dj7rK9+FlJmng01HNO/hvo8jAiWg/WQmBwtCqw
L78ebuO3YDS/q/MRner0oFdh3CXUOCyCyvdB9UdkPVhicGr8/4ORxPqxZtBSKVjD
S6ersmrn6I8UgiCCnQEz6sTDvwnHTzB+BBXXXX0kq2xFeTSHNK6EbU9FybxdkLyC
Z+M7hYqMNvb2z4p8+JjGzaTd01YtWqY=
=6EI9
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20101116/9f736425/attachment.vcf 


More information about the Zope mailing list