app/soc/views/helper/redirects.py
changeset 2668 7fd0951332ef
parent 2660 e2654d53a643
child 2704 d778f2b6191d
equal deleted inserted replaced
2667:260aaea36e49 2668:7fd0951332ef
   268 
   268 
   269 
   269 
   270 def getInviteAcceptedRedirect(entity, _):
   270 def getInviteAcceptedRedirect(entity, _):
   271   """Returns the redirect for accepting an invite.
   271   """Returns the redirect for accepting an invite.
   272   """
   272   """
   273 
   273   # TODO: redesign this redirect to use ROLE_VIEWS from the Role View
   274   return '/%s/accept_invite/%s/%s' % (
   274   return '/%s/accept_invite/%s/%s' % (
   275       entity.role, entity.scope_path, entity.link_id)
   275       entity.role, entity.scope_path, entity.link_id)
   276 
   276 
   277 
   277 
   278 def getInviteProcessRedirect(entity, _):
   278 def getInviteProcessRedirect(entity, _):