Some indention and too long lines fixes in soc.views.models.
Patch by: Pawel Solyga
--- a/app/soc/views/models/base.py Thu Nov 20 23:34:26 2008 +0000
+++ b/app/soc/views/models/base.py Thu Nov 20 23:51:45 2008 +0000
@@ -499,7 +499,7 @@
if access_type not in rights:
for check in rights['unspecified']:
- # No checks defined, so do the 'generic check' and bail out
+ # No checks defined, so do the 'generic check' and bail out
check(request, access_type)
return
--- a/app/soc/views/models/role.py Thu Nov 20 23:34:26 2008 +0000
+++ b/app/soc/views/models/role.py Thu Nov 20 23:51:45 2008 +0000
@@ -51,8 +51,10 @@
#: db.Model subclass for which the form will gather information
model = soc.models.request.Request
- #: exclude pretty much everything, model=None would also remove the help text etc.
- exclude = ['inheritance_line', 'requester', 'to', 'role', 'accepted', 'declined']
+ #: Exclude pretty much everything, model=None would
+ #: also remove the help text etc.
+ exclude = ['inheritance_line', 'requester', 'to', 'role',
+ 'accepted', 'declined']
requester = forms.CharField(widget=helper.widgets.ReadOnlyInput())
@@ -94,7 +96,8 @@
new_params['name'] = self._params['name']
new_params['name_short'] = self._params['name_short']
new_params['name_plural'] = self._params['name_plural']
- new_params['instruction_text'] = self.DEF_INVITE_INSTRUCTION_TEXT % self._params
+ new_params['instruction_text'] = \
+ self.DEF_INVITE_INSTRUCTION_TEXT % self._params
params = dicts.merge(params, new_params)
--- a/app/soc/views/models/user.py Thu Nov 20 23:34:26 2008 +0000
+++ b/app/soc/views/models/user.py Thu Nov 20 23:51:45 2008 +0000
@@ -300,12 +300,13 @@
"""
patterns = super(View, self).getDjangoURLPatterns()
- patterns += [(r'^' + self._params['url_name'] + '/edit$','soc.views.models.user.edit_self')]
+ patterns += [(r'^' + self._params['url_name'] + '/edit$',
+ 'soc.views.models.user.edit_self')]
page_name = "Unhandled Requests"
patterns += [(r'^' + self._params['url_name'] + '/roles$',
- 'soc.views.models.request.list_self',
- {'page_name': page_name}, page_name)]
+ 'soc.views.models.request.list_self',
+ {'page_name': page_name}, page_name)]
return patterns