On Jan 31, 2:22 am, Kesav Kumar Kolla <[email protected]> wrote: > I want to conditionally include some links in my chameleon template. How > to write condition in chameleon to check whether user is logged in?
Making A “User Object” Available as a Request Attribute (first paragraph) http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/authentication.html allows you to make the User object part of the request object, at which point you can access the user object in your templates as request.user.username (if username is a valid field in your user object). -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
