[Zope3-Users] Is authenticated user in TAL?

Frank Burkhardt fbo2 at gmx.net
Tue Apr 18 12:47:20 EDT 2006


On Tue, Apr 18, 2006 at 06:11:41PM +0200, Florian Lindner wrote:
> Hello,
> how can I find out if a user is authenticated with TAL? (not zope.anybody)
> 
> I've tried:
> 
> tal:condition="not: exists: request/principal/getLogin"
> 
> but that does not work reliable.

That's my way:

tal:condition="python: request.principal.id != 'zope.anybody'"

Regards,

Frank


More information about the Zope3-users mailing list