[Zope-CMF] checking permissions from python
martin f krafft
madduck@madduck.net
Sat, 10 May 2003 18:29:32 +0200
--DocE+STaALJfprDB
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
i'd like to check for the ManageProperties permission of an object
in the current context of the logged in useri from within a ZPT. the
best I could find was:
python:here.portal_membership.checkPermission(CMFCorePermissions.ManagePr=
operties, here)
However, this complains about CMFCorePermissions not found.
How do I check for the ManageProperties permission of the here
object?
--=20
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
=20
keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html
get my key here: http://madduck.net/me/gpg/publickey
=20
sweetmeats are candies and sweetbreads are meat.
--DocE+STaALJfprDB
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+vSjsIgvIgzMMSnURAv0RAJ9Euc3VuIFX7i9XpbloZSbKvfpCKgCfUOCG
vZ77+EbFYcz/1NuM9ZAo3Rk=
=DnGg
-----END PGP SIGNATURE-----
--DocE+STaALJfprDB--