Fix too long lines and rename unused loop variables to _ in soc.views.models.base module.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- 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