app/soc/views/helper/redirects.py
changeset 920 39badbfb80be
parent 891 3d40190f35b6
child 923 5a10f6db154b
equal deleted inserted replaced
919:3f9072bab1d4 920:39badbfb80be
    89 
    89 
    90 def inviteAcceptedRedirect(entity, _):
    90 def inviteAcceptedRedirect(entity, _):
    91   """Returns the redirect for accepting an invite.
    91   """Returns the redirect for accepting an invite.
    92   """
    92   """
    93 
    93 
    94   return '/%s/create/%s/%s' % (
    94   return '/%s/accept_invite/%s/%s' % (
    95       entity.role, entity.scope_path, entity.link_id)
    95       entity.role, entity.scope_path, entity.link_id)
    96 
    96 
       
    97 def inviteProcessRedirect(entity, _):
       
    98   """Returns the redirect for processing an invite
       
    99   """
       
   100 
       
   101   return '/request/process_invite/%s/%s/%s' % (
       
   102       entity.scope_path, entity.role, entity.link_id)
    97 
   103 
    98 def getApplicantRedirect(entity, params):
   104 def getApplicantRedirect(entity, params):
    99   """Returns the redirect for processing accepted Applications.
   105   """Returns the redirect for processing accepted Applications.
   100   """
   106   """
   101 
   107