Rename acceptInvite view variable to accept_invite to comply to our style guide. Remove unused imports. Add missing blank lines in soc.views.models.club_admin module.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sat, 24 Jan 2009 11:24:07 +0000
changeset 952 e087015e09c9
parent 951 026696e4a3af
child 953 157a20300bbc
Rename acceptInvite view variable to accept_invite to comply to our style guide. Remove unused imports. Add missing blank lines in soc.views.models.club_admin module. Patch by: Pawel Solyga Review by: to-be-reviewed
app/soc/views/models/club_admin.py
app/soc/views/models/role.py
--- a/app/soc/views/models/club_admin.py	Sat Jan 24 11:12:07 2009 +0000
+++ b/app/soc/views/models/club_admin.py	Sat Jan 24 11:24:07 2009 +0000
@@ -23,19 +23,13 @@
   ]
 
 
-from django import http
 from django import forms
 
 from soc.logic import cleaning
 from soc.logic import dicts
 from soc.logic.models import club as club_logic
-from soc.logic.models import user as user_logic
-from soc.logic.models import request as request_logic
 from soc.views.helper import access
-from soc.views.helper import decorators
 from soc.views.helper import dynaform
-from soc.views.helper import redirects
-from soc.views.helper import responses
 from soc.views.helper import widgets
 from soc.views.models import club as club_view
 from soc.views.models import role
@@ -96,7 +90,6 @@
 
     params['invited_create_form'] = invited_create_form
 
-
   def _editPost(self, request, entity, fields):
     """See base.View._editPost().
     """
@@ -106,7 +99,6 @@
 
     super(View, self)._editPost(request, entity, fields)
 
-
   def _acceptInvitePost(self, fields, request, context, params, **kwargs):
     """Fills in the fields that were missing in the invited_created_form
     
@@ -119,7 +111,7 @@
 
 view = View()
 
-acceptInvite = view.acceptInvite
+accept_invite = view.acceptInvite
 create = view.create
 delete = view.delete
 edit = view.edit
--- a/app/soc/views/models/role.py	Sat Jan 24 11:12:07 2009 +0000
+++ b/app/soc/views/models/role.py	Sat Jan 24 11:24:07 2009 +0000
@@ -69,7 +69,7 @@
         'soc.views.models.%(module_name)s.invite',
         'Create invite for %(name_plural)s'),
         (r'^%(url_name)s/(?P<access_type>accept_invite)/%(scope)s/%(lnp)s$',
-        'soc.views.models.%(module_name)s.acceptInvite',
+        'soc.views.models.%(module_name)s.accept_invite',
         'Accept invite for %(name_plural)s')]
 
     new_params['extra_django_patterns'] = patterns