app/soc/views/helper/redirects.py
changeset 929 7431d7770197
parent 923 5a10f6db154b
child 930 7e88fba647b1
equal deleted inserted replaced
928:df051fc9d7a1 929:7431d7770197
    92       params['group_scope'], params['url_name'], entity.key().name())
    92       params['group_scope'], params['url_name'], entity.key().name())
    93 
    93 
    94   return result
    94   return result
    95 
    95 
    96 
    96 
    97 def inviteAcceptedRedirect(entity, _):
    97 def getInviteAcceptedRedirect(entity, _):
    98   """Returns the redirect for accepting an invite.
    98   """Returns the redirect for accepting an invite.
    99   """
    99   """
   100 
   100 
   101   return '/%s/accept_invite/%s/%s' % (
   101   return '/%s/accept_invite/%s/%s' % (
   102       entity.role, entity.scope_path, entity.link_id)
   102       entity.role, entity.scope_path, entity.link_id)
   103 
   103 
   104 def inviteProcessRedirect(entity, _):
   104 
       
   105 def getInviteProcessRedirect(entity, _):
   105   """Returns the redirect for processing an invite
   106   """Returns the redirect for processing an invite
   106   """
   107   """
   107 
   108 
   108   return '/request/process_invite/%s/%s/%s' % (
   109   return '/request/process_invite/%s/%s/%s' % (
   109       entity.scope_path, entity.role, entity.link_id)
   110       entity.scope_path, entity.role, entity.link_id)
       
   111 
   110 
   112 
   111 def getApplicantRedirect(entity, params):
   113 def getApplicantRedirect(entity, params):
   112   """Returns the redirect for processing accepted Applications.
   114   """Returns the redirect for processing accepted Applications.
   113   """
   115   """
   114 
   116