[Zope] Re: ZPT Equivalent for SecurityGetUser
Andreas Pakulat
ap125@informatik.uni-rostock.de
Wed, 21 May 2003 11:53:38 +0200
--oJ71EGRlYNjSvfq7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 20.Mai 2003 - 18:28:21, Evan Simpson wrote:
> Andreas Pakulat wrote:
> >And my conversion looks like:
> >
> > <span tal:condition=3D"python: here.REQUEST['AUTHENTICATED_USER'] =3D=
=3D=20
> > 'Anonymous User'">
>=20
> <span tal:condition=3D"python:user.has_role(['Authenticated'])">
Thanks so much. That works even better than my own workaround:
tal:define=3D"name user/getUserName"
tal:condition=3D"python: name =3D=3D 'Anonymous User'"
Where I still wasn't logged out, but clicking the manage_zmi_logout Link
worked.
Now with you tip it works perfectly.
Andreas
--=20
Give your very best today. Heaven knows it's little enough.
--oJ71EGRlYNjSvfq7
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+y0yhuekl0h+nrMIRAgl0AKCGR+bRDopruLMMuQZshDU439aKPgCglG+j
KAmJEL+7N/ypqB6v86bkuwM=
=ZPzN
-----END PGP SIGNATURE-----
--oJ71EGRlYNjSvfq7--