Cleaner way to get user name in pylons with repoze.name

Posted by Timmy on Stack Overflow See other posts from Stack Overflow or by Timmy
Published on 2010-04-16T20:55:53Z Indexed on 2010/04/16 22:03 UTC
Read the original article Hit count: 314

Filed under:
|

in mako template, i use this

${request.environ['repoze.who.identity']['user']}

and the render in controller:

render('file.html')

can i write this better without passing in parameter everytime?

© Stack Overflow or respective owner

Related posts about pylons

Related posts about python