Fix some style guide issues: keyword arguments are supposed to always be
authorTodd Larsen <tlarsen@google.com>
Wed, 01 Oct 2008 05:02:42 +0000
changeset 232 7741d6b7ce7c
parent 231 e2782aacfec7
child 233 42733f531ebf
Fix some style guide issues: keyword arguments are supposed to always be supplied using the keyword argument name=value. http://code.google.com/p/soc/wiki/PythonStyleGuide#Default_Argument_Values
app/soc/views/site/user/list.py
--- a/app/soc/views/site/user/list.py	Wed Oct 01 02:23:30 2008 +0000
+++ b/app/soc/views/site/user/list.py	Wed Oct 01 05:02:42 2008 +0000
@@ -45,17 +45,18 @@
   offset = request.GET.get('offset')
   limit = request.GET.get('limit')
 
-  offset, limit = list_helpers.getListParemeters(offset, limit)
+  offset, limit = list_helpers.getListParemeters(offset=offset, limit=limit)
   
-  users = id_user.getUsersForOffsetAndLimit(offset, limit)
+  users = id_user.getUsersForOffsetAndLimit(offset=offset, limit=limit)
   
   list_templates = {'list_main': 'soc/list/list_main.html',
                     'list_pagination': 'soc/list/list_pagination.html',
                     'list_row': 'soc/site/user/list/user_row.html',
                     'list_heading': 'soc/site/user/list/user_heading.html'}
                       
-  context = list_helpers.setList(request, context, users, 
-                                 offset, limit, list_templates)
+  context = list_helpers.setList(
+      request, context, users,
+      offset=offset, limit=limit, list_templates=list_templates)
 
   return response_helpers.respond(request, template, context)
                  
\ No newline at end of file