Hi,

I'm populating the options of a SingleSelectField with a database query; 
however, I need to filter the query based on which user is logged in.  In 
my controllers I simply call request.identity['repoze.who.userid'] to find 
the user with which I filter the data.  When I try to make a call 
to request.identity from my a form, I get the following 
error: AttributeError: identity

How can I find out which user is logged in from a form?  If that's not 
possible in that context, how do I pass a variable from my controller to 
the form holding the user id?

Thanks!

Ryan

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/turbogears/-/EiOVg1CHa_4J.
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/turbogears?hl=en.

Reply via email to