From 423f04d0be5276b731d325585ac419ff805fbfd4 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Wed, 15 Aug 2012 18:00:22 +0200 Subject: [PATCH] send overlay message data to own view --- openslides/projector/api.py | 1 - .../projector/control_overlay_message.html | 2 +- openslides/projector/urls.py | 8 ++- openslides/projector/views.py | 57 ++++++++++++------- 4 files changed, 43 insertions(+), 25 deletions(-) diff --git a/openslides/projector/api.py b/openslides/projector/api.py index b0ece2d55..56fe4e0d4 100644 --- a/openslides/projector/api.py +++ b/openslides/projector/api.py @@ -165,7 +165,6 @@ def get_all_widgets(request, session=False): continue for widget in modul_widgets: - print widget, session_widgets.get(widget, True) if (widget.permission_required is None or request.user.has_perm(widget.permission_required)): if not session or session_widgets.get(widget.get_name(), True): diff --git a/openslides/projector/templates/projector/control_overlay_message.html b/openslides/projector/templates/projector/control_overlay_message.html index 16803ec4a..6741a3eff 100644 --- a/openslides/projector/templates/projector/control_overlay_message.html +++ b/openslides/projector/templates/projector/control_overlay_message.html @@ -2,7 +2,7 @@ {% load i18n %} {% load tags %} -
{% csrf_token %} +{% csrf_token %}