app/soc/views/simple.py
changeset 125 155f43a0fa68
parent 123 45d10b6af158
child 139 93a9a22a4c38
--- a/app/soc/views/simple.py	Fri Aug 29 04:24:31 2008 +0000
+++ b/app/soc/views/simple.py	Sat Aug 30 02:54:22 2008 +0000
@@ -101,9 +101,8 @@
   context = response_helpers.getUniversalContext(request, context=context)
   
   # make a list of possible "sibling" templates, then append a default
-  error_templates = template_helpers.makeSiblingTemplatesList(template,
-                                                              'error.html')
-  error_templates.append(DEF_ERROR_TMPL)
+  error_templates = template_helpers.makeSiblingTemplatesList(
+      template, 'error.html', default_template=DEF_ERROR_TMPL)
 
   context['error_status'] = error.response_args.get('status')
   context['error_message'] = error.message
@@ -134,9 +133,8 @@
   context = response_helpers.getUniversalContext(request, context=context)
   
   # make a list of possible "sibling" templates, then append a default
-  login_templates = template_helpers.makeSiblingTemplatesList(template,
-                                                              'login.html')
-  login_templates.append(DEF_LOGIN_TMPL)
+  login_templates = template_helpers.makeSiblingTemplatesList(
+      template, 'login.html', default_template=DEF_LOGIN_TMPL)
   
   if not context.get('login_message'):
     if not login_message_fmt: