[prev in list] [next in list] [prev in thread] [next in thread]
List: zope3-users
Subject: Re: [Zope3-Users] How
From: Tobias_Rodäbel <tobias.rodaebel () mac ! com>
Date: 2007-08-28 23:55:45
Message-ID: B1D80043-4665-4A78-A432-BBD084046282 () mac ! com
[Download RAW message or body]
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
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic