Hi, the properties description on 1.0/UsingIdentity does not list all properties of identity.current. In r4125 (http://trac.turbogears.org/changeset/4125) "user_id" and "group_ids" were added.
Patch attached. fs PS: Can you grant me with "editors" privileges? Its somewhat annoying having to post every time I find some problems on "official" pages. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Docs" 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-docs?hl=en -~----------~----~----~----~------~----~------~--~---
diff -r 231d1863f11c UsingIdentity.txt --- a/UsingIdentity.txt Thu Mar 27 13:56:01 2008 +0100 +++ b/UsingIdentity.txt Thu Mar 27 13:58:22 2008 +0100 @@ -233,6 +233,9 @@ Properties | *user_name* | Returns User.user_name if the visitor is authenticated, | | | otherwise returns None | +---------------+-------------------------------------------------------------+ +| *user_id* | Returns User.user_id if the visitor is authenticated, | +| | otherwise returns None | ++---------------+-------------------------------------------------------------+ | *anonymous* | Returns True if the visitor is not authenticated, False | | | otherwise | +---------------+-------------------------------------------------------------+ @@ -241,6 +244,10 @@ Properties | | anonymous visitors. | +---------------+-------------------------------------------------------------+ | *groups* | Returns a sequence of Group.group_name strings if the | +| | visitor is authenticated. | +| | Returns an empty sequence for anonymous visitors. | ++---------------+-------------------------------------------------------------+ +| *group_ids* | Returns a sequence of Group.group_id numbers if the | | | visitor is authenticated. | | | Returns an empty sequence for anonymous visitors. | +---------------+-------------------------------------------------------------+
