[Zope] What's the tal expression to test for whether someone is
logged in?
Ken Winter
ken at sunward.org
Sun Apr 1 22:17:17 EDT 2007
Andrew ~
Yes!! It worked.
One more question: Where (if anywhere) could I have looked up this answer
(and probably many more), so I wouldn't have to bother this list with
questions like this?
~ Ken
> -----Original Message-----
> From: Andrew Milton [mailto:akm at theinternet.com.au]
> Sent: Sunday, April 01, 2007 1:58 AM
> To: Ken Winter
> Cc: Zope List
> Subject: Re: [Zope] What's the tal expression to test for whether someone
> is logged in?
>
> +-------[ Ken Winter ]----------------------
> | In other words, what should I substitute for X in the following to make
> this
> | division appear only when a user is logged in? :
> |
> |
> |
> | <div tal:condition=?X?> ? </div>
>
> tal:condition="python: user.has_role(['Authenticated'],)"
>
> --
> Andrew Milton
> akm at theinternet.com.au
More information about the Zope
mailing list