summaryrefslogtreecommitdiff
path: root/src/meetingtools/extensions
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-04 15:11:49 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-04 15:11:49 +0200
commita8f72fab3a15120da2332c314836c1b521e9091a (patch)
treee9ea77c193b7c99e65b98caf2a982f396ab83144 /src/meetingtools/extensions
parente6213dccb11e9b6f1111076d42032d0c0fb5b7af (diff)
settings cleanup
remove broken prefix-handler
Diffstat (limited to 'src/meetingtools/extensions')
-rw-r--r--src/meetingtools/extensions/templatetags/prefix.py18
-rw-r--r--src/meetingtools/extensions/templatetags/roomurl.py3
2 files changed, 1 insertions, 20 deletions
diff --git a/src/meetingtools/extensions/templatetags/prefix.py b/src/meetingtools/extensions/templatetags/prefix.py
deleted file mode 100644
index 32b8656..0000000
--- a/src/meetingtools/extensions/templatetags/prefix.py
+++ /dev/null
@@ -1,18 +0,0 @@
-'''
-Created on Feb 9, 2011
-
-@author: leifj
-'''
-
-from django import template
-from meetingtools.settings import PREFIX_URL, BASE_URL
-register = template.Library()
-
-@register.simple_tag
-def baseurl():
- return BASE_URL
-
-
-@register.simple_tag
-def prefix():
- return PREFIX_URL \ No newline at end of file
diff --git a/src/meetingtools/extensions/templatetags/roomurl.py b/src/meetingtools/extensions/templatetags/roomurl.py
index 37f1e80..e5abe57 100644
--- a/src/meetingtools/extensions/templatetags/roomurl.py
+++ b/src/meetingtools/extensions/templatetags/roomurl.py
@@ -1,5 +1,4 @@
from django import template
-from meetingtools.settings import BASE_URL
register = template.Library()
@@ -14,7 +13,7 @@ def roomurl(room):
if room.urlpath:
path = room.urlpath
- return "%s/go/%s" % (BASE_URL,path)
+ return "/go/%s" % path
roomurl.is_safe = True
register.filter(roomurl) \ No newline at end of file