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