app/soc/views/models/base.py
changeset 1658 65147d9fbd96
parent 1594 b80bf089d5f7
child 1667 95bc81b4cd5c
--- a/app/soc/views/models/base.py	Wed Mar 04 21:16:26 2009 +0000
+++ b/app/soc/views/models/base.py	Wed Mar 04 21:17:40 2009 +0000
@@ -642,7 +642,8 @@
     response = responses.respond(request, template, context)
     # if the browser supports HTTP/1.1
     # post-check and pre-check and no-store for IE7
-    response['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
+    response['Cache-Control'] = 'no-store, no-cache, must-revalidate, ' \
+        'post-check=0, pre-check=0'
     # if the browser supports HTTP/1.0
     response['Pragma'] = 'no-cache'
     
@@ -720,7 +721,7 @@
     if 'scope_path' in form.fields:
       form.fields['scope_path'].initial = entity.scope_path
 
-    for field_name, original_name, _, getter in self._params['references']:
+    for field_name, _, _, getter in self._params['references']:
       try:
         field = getter(entity)
         form.fields[field_name].initial = field.link_id if field else None