From dd1ed9dcaf444892ea41e7ca6a3863629119a140 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 13 Jun 2011 15:44:01 +0200 Subject: normalize url paths --- src/meetingtools/apps/room/views.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.1