summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-08 13:53:00 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-08 13:53:00 +0200
commit41fa7050766d3ad5a57c83faacd3031fc9fa35bf (patch)
treef16cb1ceb1a654695bae35d13122910c80393cf9
parentbd8cf29f8c2f0c8298e7bf324f865bd7aab722b3 (diff)
- keep the login url in ctx
-rw-r--r--meetingtools/context_processors.py3
-rw-r--r--meetingtools/multiresponse.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/meetingtools/context_processors.py b/meetingtools/context_processors.py
index 5bd5885..491e785 100644
--- a/meetingtools/context_processors.py
+++ b/meetingtools/context_processors.py
@@ -21,3 +21,6 @@ def theme(request):
ctx.update(settings.THEMES['__default__'])
return _w(ctx)
+
+def misc_urls(request):
+ return {'LOGIN_URL': settings.LOGIN_URL} \ No newline at end of file
diff --git a/meetingtools/multiresponse.py b/meetingtools/multiresponse.py
index f599323..fa46cc4 100644
--- a/meetingtools/multiresponse.py
+++ b/meetingtools/multiresponse.py
@@ -31,7 +31,7 @@ def make_response_dict(request,d={}):
if request.user.is_authenticated():
d['user'] = request.user
- ctx = RequestContext(request,d,[context_processors.theme])
+ ctx = RequestContext(request,d,[context_processors.theme,context_processors.misc_urls])
print repr(ctx['theme'])
return ctx