[Zope-CMF] checking for local role
Bryan C. Andregg
bryan.andregg@duke.edu
Wed, 24 Jul 2002 15:52:10 -0400
--wW+nxtlBKd4vTUlt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I've tried several variations of:
tal:condition=3D"python:
here.portal_membership.getAuthenticatedMember().has_role('Foo')"
As a way of checking for the local role Foo, but this always returns false.
What is the proper syntax for testing for a local role?
--=20
Bryan C. Andregg Duke University Medical Center
Programmer Dept. of Anesthesiology
e <bryan.andregg@duke.edu>
p +1 919 684 6201
--wW+nxtlBKd4vTUlt
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9PwVqj9pElyS/cakRAj/EAJ9hgy505NyDrKyV63KQjj/Lo9H7tQCfTyVu
7m3XqMYyNs4gdOmTsrvzxv8=
=v4ZZ
-----END PGP SIGNATURE-----
--wW+nxtlBKd4vTUlt--