1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
''' 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(): groups = request.user.groups return groups