On Tuesday November 11, 2008 18:24:33 cd34 wrote:
> Identity - I need to expose user_id to my application (converting a
> php application over to TG2).  Is this able to be exposed through the
> existing code, or, do I need to overload the class to handle it?
>
>     identity = request.environ.get('repoze.who.identity')
>     username = identity.get('repoze.who.userid')
>
> userid appears to return the username rather than user_id from the
> table.

If you're using the quickstart, then the user object will be available in 
identity.user.

> A suggested change for identity:
>
> on line 368 of authorize.py, change
>
> flash(errors)
>
> to
>
> flash(errors, status="status_warning")
>
> Just a semantics issue, the 'green checkbox' usually signifies
> something completed successfully.  The 'red warning' signifies to
> someone that there is a problem.

Thanks! It's now fixed in the repository.

Cheers.
-- 
Gustavo Narea <http://gustavonarea.net/>.

Get rid of unethical constraints! Get freedomware:
http://www.getgnulinux.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to