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

Reply via email to