William, I apologise for sending this to the list, but your email address bounded back at me.
On 25 Oct, 2005, at 3:48 am, william wrote:
I'm new to TG, thus questions can be stupid.
I'm new to both TurboGear and Python; so my answers are likely to be stupid too. We can be stupid together.
If you permit me, I would like to make some comments/ask some questions:
I'm always interested in questions and comments. I can't think of everything and I frequently overlook the most obvious issues.
- Remark: I would prefer to see your table be prefixed with "identity" for example: identity_user, identity_group. This could remove possible conflicts
That's not a bad idea. I named them user_table and group_table to avoid conflicts with user and group keywords. Of course, the data for the identity is always available for your use. And ideally I'd like to find a way to use subclasses of User, Group, and Permission defined by your application.
- Remark: can you add a sample of logout page ?
That's next on my list of things to do. Oddly enough it's not as simple as you might think. Because we can't really trust the browser to delete the cookie when we log out, I have to keep track of the secret token handed out in order to invalidate it.
- Question: how to retreive, in other pages, the name of the logged-in user ?
You should be able to access the user via the current identity. For example:
from turbogears import identity user= identity.current.user
- Question: Does Identity will be part of TurboGears ?
Already is. -- Jeff Watkins http://metrocat.org/

