summaryrefslogtreecommitdiff
path: root/src/meetingtools
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-06-13 15:44:01 +0200
committerLeif Johansson <leifj@sunet.se>2011-06-13 15:44:01 +0200
commitdd1ed9dcaf444892ea41e7ca6a3863629119a140 (patch)
treef1a411210aab3e904753e5e279c57fd8f07c7623 /src/meetingtools
parent324a47f0455931a4b405385e2679ae267517914f (diff)
normalize url paths
Diffstat (limited to 'src/meetingtools')
-rw-r--r--src/meetingtools/apps/room/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index 41254c6..94b6877 100644
--- a/src/meetingtools/apps/room/views.py
+++ b/src/meetingtools/apps/room/views.py
@@ -249,6 +249,9 @@ def _import_room(request,acc,r):
#logging.debug(pformat(room))
+ if r.has_key('urlpath'):
+ r['urlpath'] = r['urlpath'].strip('/')
+
for key in ('sco_id','name','source_sco_id','urlpath','description','user_count','host_count'):
if r.has_key(key) and hasattr(room,key):
rv = getattr(room,key)