summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meetingtools/apps/auth/utils.py7
-rw-r--r--meetingtools/apps/auth/views.py2
-rw-r--r--meetingtools/apps/content/views.py4
3 files changed, 8 insertions, 5 deletions
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)
diff --git a/meetingtools/apps/content/views.py b/meetingtools/apps/content/views.py
index d300b86..bc8abb3 100644
--- a/meetingtools/apps/content/views.py
+++ b/meetingtools/apps/content/views.py
@@ -32,7 +32,7 @@ def user(request, username=None):
def cluster(request, cluster_name=None):
if not request.user.is_staff:
- return HttpResponseForbidden
+ return HttpResponseForbidden()
clusters = ACCluster.objects.all().values('name')
if cluster_name:
@@ -54,7 +54,7 @@ def cluster(request, cluster_name=None):
def domain(request, domain_name):
if not request.user.is_staff:
- return HttpResponseForbidden
+ return HttpResponseForbidden()
domain_tag = get_object_or_404(Tag, name='domain:%s' % domain_name)
users = cache.get('%s-users' % domain_tag)