On Jan 31, 2:22 am, Kesav Kumar Kolla <
kesavko...@gmail.com> 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).