The Survey public view now uses the proper page name.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 04 Aug 2009 15:59:42 +0200
changeset 2723 9e03061402ac
parent 2722 1ec0af4ddd72
child 2724 8df4563fb2eb
The Survey public view now uses the proper page name. Also removed the pick view entry from the Survey View.
app/soc/views/models/survey.py
--- a/app/soc/views/models/survey.py	Tue Aug 04 15:58:31 2009 +0200
+++ b/app/soc/views/models/survey.py	Tue Aug 04 15:59:42 2009 +0200
@@ -221,6 +221,9 @@
 
     context['survey_form'] = survey_form
 
+    context['page_name'] = "%s titled '%s'" %(
+        context['page_name'], entity.title)
+
     # return True to signal that the page may be displayed
     return True
 
@@ -930,7 +933,6 @@
 json = decorators.view(view.exportSerialized)
 list = decorators.view(view.list)
 public = decorators.view(view.public)
-pick = decorators.view(view.pick)
 record = decorators.view(view.viewRecord)
 results = decorators.view(view.viewResults)
 take = decorators.view(view.take)