app/soc/views/models/role.py
changeset 502 e1e24c0a4e82
parent 500 44ea4620c5c0
child 507 3603fdafabf7
equal deleted inserted replaced
501:be89bf307478 502:e1e24c0a4e82
    89     """
    89     """
    90 
    90 
    91     new_params = {}
    91     new_params = {}
    92 
    92 
    93     new_params['list_template'] = 'soc/models/create_invite.html'
    93     new_params['list_template'] = 'soc/models/create_invite.html'
    94     new_params['list_redirect_action'] = 'request/create/%s/%s' % (
    94     new_params['list_redirect_action'] = '/request/create/%s/%s' % (
    95         self._params['name_short'].lower(),
    95         self._params['url_name'], kwargs['link_name'])
    96         kwargs['link_name'])
       
    97     new_params['list_redirect_entity'] = self._params['name']
    96     new_params['list_redirect_entity'] = self._params['name']
    98     new_params['name'] = self._params['name']
    97     new_params['name'] = self._params['name']
    99     new_params['name_short'] = self._params['name_short']
    98     new_params['name_short'] = self._params['name_short']
   100     new_params['name_plural'] = self._params['name_plural']
    99     new_params['name_plural'] = self._params['name_plural']
   101 
   100 
   187     """
   186     """
   188 
   187 
   189     params = {}
   188     params = {}
   190     default_patterns = self._params['django_patterns_defaults']
   189     default_patterns = self._params['django_patterns_defaults']
   191     default_patterns += [
   190     default_patterns += [
   192         (r'^%(name_lower)s/invite/%(lnp)s$',
   191         (r'^%(url_name)s/invite/%(lnp)s$',
   193             'soc.views.models.%s.invite', 'Invite %(name)s')]
   192             'soc.views.models.%s.invite', 'Invite %(name)s')]
   194 
   193 
   195     params['django_patterns_defaults'] = default_patterns
   194     params['django_patterns_defaults'] = default_patterns
   196     patterns = super(RoleView, self).getDjangoURLPatterns(params)
   195     patterns = super(RoleView, self).getDjangoURLPatterns(params)
   197 
   196