summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/cluster/models.py
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-02 22:23:54 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-02 22:23:54 +0200
commitec839d583fff6b279c7cdec2fdf87762f81f9aa5 (patch)
tree912507bfc3353ba076ae225a8d40ba14f57d2972 /src/meetingtools/apps/cluster/models.py
parent2346efdb58afff79fcfc1d581b0091f32ee6fac1 (diff)
- bootstrap
- cleanup - bugfixes
Diffstat (limited to 'src/meetingtools/apps/cluster/models.py')
-rw-r--r--src/meetingtools/apps/cluster/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/meetingtools/apps/cluster/models.py b/src/meetingtools/apps/cluster/models.py
index 7b59771..3c65d57 100644
--- a/src/meetingtools/apps/cluster/models.py
+++ b/src/meetingtools/apps/cluster/models.py
@@ -30,6 +30,6 @@ def acc_for_user(user):
domain = "nordu.net" # testing with local accts only
for acc in ACCluster.objects.all():
for regex in acc.domain_match.split():
- if re.match(regex,domain):
+ if re.match(regex.strip(),domain):
return acc
- raise Exception,"I don't know which cluster you belong to... (%s)" % user.username \ No newline at end of file
+ raise Exception,"I don't know which cluster you belong to... (%s)" % user.username