summaryrefslogtreecommitdiff
path: root/src/templates/meetingtools/apps/auth/utils.py
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-04-04 21:04:33 +0200
committerLeif Johansson <leifj@sunet.se>2011-04-04 21:04:33 +0200
commit5e6d967b1bf14b715b306d8bc7637f94a813757b (patch)
tree7f016fd0d1dad33f98eef835ed60cee88645f7b7 /src/templates/meetingtools/apps/auth/utils.py
parentbf9d7779e715e3f876d3843f3dac4c08af242fa0 (diff)
cleanup and turn form into wizard
Diffstat (limited to 'src/templates/meetingtools/apps/auth/utils.py')
-rw-r--r--src/templates/meetingtools/apps/auth/utils.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/templates/meetingtools/apps/auth/utils.py b/src/templates/meetingtools/apps/auth/utils.py
deleted file mode 100644
index 3a7efe6..0000000
--- a/src/templates/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