[Zope3-Users] How
Tobias Rodäbel
tobias.rodaebel at mac.com
Tue Aug 28 19:55:45 EDT 2007
On 08/25/2007 at 19:22 Yuan HOng wrote:
> In my page template, I would like to show one message if the request
> is authenticated, and other if the user has not logged in.
>
> Is there a simple test I can use in the template file like?
For me the following works well:
<span tal:condition="python: request.principal.id !=
'zope.anybody'">Welcome, <span tal:replace="request/principal/
title">user name</span></span>
Cheers,
Tobias
More information about the Zope3-users
mailing list