app/soc/views/models/role.py
changeset 663 c2dcae606699
parent 660 5a381b290691
child 668 77f9a6ea6e67
--- a/app/soc/views/models/role.py	Wed Dec 03 23:49:10 2008 +0000
+++ b/app/soc/views/models/role.py	Thu Dec 04 10:09:38 2008 +0000
@@ -87,30 +87,12 @@
         'Invite %(name_short)s')]
 
     new_params['extra_django_patterns'] = patterns
+    new_params['scope_redirect'] = redirects.getInviteRedirect
 
     params = dicts.merge(params, new_params)
 
     super(View, self).__init__(params=params)
 
-  def create(self, request, **kwargs):
-    """Specialized create view to enforce needing a scope_path
-
-    This view simply gives control to the base.View.create if the
-    scope_path is specified in kwargs. If it is not present, it
-    instead displays the result of self.select. Refer to the
-    respective docstrings on what they do.
-
-    Args:
-      see base.View.create
-    """
-
-    if 'scope_path' in kwargs:
-      return super(View, self).create(request, **kwargs)
-
-    view = sponsor_view.view
-    redirect = redirects.getInviteRedirect
-    return self.select(request, view, redirect, **kwargs)
-
   def invite(self, request, page_name=None, params=None, **kwargs):
     """Displays the request promotion to Role page.
     """