I'm having a bit of trouble. I want to display the username on the top of each page of my turbogears project. Along with the username, I have some other default information that I am storing in a high-level object. This object gets dispursed throughout all of the lower-level content. The reason for this is to avoid having to add the username to the return function of every page controller.
I am having trouble finding a suitable location to set this information. Trying to do so in the constructor of the object itself produces an error saying a request to obtain identity information was issued outside of a turbogears request. If I set this information inside the login function, it wil only work if they tried to access the system through the login screen. For example, if they went to http://localhost/login, then continued to browse, everything would work fine. If they initially went to another page that required a login, the object does not get the requested information. I guess what I'm asking is: Does anybody know of a piece of code that gets called after a user logs in no matter what page they came from? Alternatively, does anybody know of a good way to display the username at the top of the page that differs from mine? thank you -David Marsh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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 -~----------~----~----~----~------~----~------~--~---

