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.

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.

---

As for deployment, is there any real reason to run TG2 behind Apache?
With the WSGI interface and the performance testing I've done, running
it behind apache/lighttpd results in a slight but noticeable
difference between development and a sample production test.
--~--~---------~--~----~------------~-------~--~----~
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