From bbb6962f43bf5d020fbc1ae41fbee2f0c9aff199 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Wed, 22 Oct 2014 16:54:29 +0200 Subject: Minor fixes and PEP-8. --- meetingtools/apps/auth/utils.py | 7 +++++-- meetingtools/apps/auth/views.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'meetingtools/apps/auth') diff --git a/meetingtools/apps/auth/utils.py b/meetingtools/apps/auth/utils.py index 1a0174c..0651eba 100644 --- a/meetingtools/apps/auth/utils.py +++ b/meetingtools/apps/auth/utils.py @@ -1,16 +1,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(): diff --git a/meetingtools/apps/auth/views.py b/meetingtools/apps/auth/views.py index b396233..bd77117 100644 --- a/meetingtools/apps/auth/views.py +++ b/meetingtools/apps/auth/views.py @@ -23,7 +23,7 @@ def meta(request,attr): if not v: return None values = filter(lambda x: x != "(null)",v.split(";")) - return values; + return values def meta1(request,attr,dflt=None): v = meta(request,attr) -- cgit v1.1