diff options
Diffstat (limited to 'meetingtools/apps/auth/utils.py')
-rw-r--r-- | meetingtools/apps/auth/utils.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/meetingtools/apps/auth/utils.py b/meetingtools/apps/auth/utils.py deleted file mode 100644 index 3a7efe6..0000000 --- a/meetingtools/apps/auth/utils.py +++ /dev/null @@ -1,26 +0,0 @@ -''' -Created on Jul 7, 2010 - -@author: leifj -''' -from uuid import uuid4 - -def nonce(): - return uuid4().hex - -def anonid(): - return uuid4().urn - -def groups(request): - groups = [] - if request.user.is_authenticated(): - if request.session and request.session.has_key('entitlement'): - groups = groups + request.session['entitlement'] - - if '@' in request.user.username: - (local,domain) = request.user.username.split('@') - groups.append(domain) - for e in ('member','employee','student'): - groups.append("%s@%s" % (e,domain)) - - return groups
\ No newline at end of file |