Fixed the description on the user's role page. This broke in r1111. The new lists also removed the need for instruction_text in models/base.py.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 22 Nov 2008 11:19:20 +0000
changeset 552 cb23b3897e0c
parent 551 2ee7ad5266a8
child 553 c0cc20b4afc9
Fixed the description on the user's role page. This broke in r1111. The new lists also removed the need for instruction_text in models/base.py. Removed an obsolete assignment in models/request.py Patch by: Lennard de Rijk
app/soc/views/models/base.py
app/soc/views/models/request.py
--- a/app/soc/views/models/base.py	Sat Nov 22 10:29:13 2008 +0000
+++ b/app/soc/views/models/base.py	Sat Nov 22 11:19:20 2008 +0000
@@ -369,9 +369,6 @@
     context['entity_type_plural'] = params['name_plural']
     context['redirect_action'] = params['list_redirect_action']
 
-    if 'instruction_text' in params:
-      context['instruction_text'] = params['instruction_text']
-
     template = params['list_template']
 
     return helper.responses.respond(request, template, context)
--- a/app/soc/views/models/request.py	Sat Nov 22 10:29:13 2008 +0000
+++ b/app/soc/views/models/request.py	Sat Nov 22 11:19:20 2008 +0000
@@ -144,10 +144,9 @@
     """
 
     new_params = {}
-    new_params['list_template'] = 'soc/models/list.html'
     # TODO(SRabbelier) Change the redirect to something more useful
     new_params['list_redirect_action'] = '/'
-    new_params['instruction_text'] = "An overview of your unhandeled requests"
+    new_params['list_description'] = "An overview of your unhandled requests"
     
     params = dicts.merge(params, new_params)