Using the Genshi templating engine with CherryPy, I need to have a context-specific site navigation which displays a different menu for logged in users.
Users are identified by a CherryPy session.
What would be the best way to show a different menu for logged in users?
We check to see if the user is logged in...
your template would like something like this...
If they are we send a variable to the template to show Log Out instead of Login.
We're using this for Authentication...
http://tools.cherrypy.org/wiki/AuthenticationAndAccessRestrictions
Include the comments for security reasons. Hope this helps!