app/soc/views/models/role.py
changeset 2177 e2c193e1f631
parent 2076 1cd180cc56c9
child 2361 40b0c25a5793
equal deleted inserted replaced
2176:3e5187b444db 2177:e2c193e1f631
   159     params = dicts.merge(params, new_params, sub_merge=True)
   159     params = dicts.merge(params, new_params, sub_merge=True)
   160 
   160 
   161     super(View, self).__init__(params=params)
   161     super(View, self).__init__(params=params)
   162 
   162 
   163     # add manage template
   163     # add manage template
   164     params['manage_template'] = 'soc/%(module_name)s/manage.html' % params
   164     template = 'soc/%(module_name)s/manage.html' % self._params
   165 
   165     self._params['manage_template'] = template
   166     if params.get('show_in_roles_overview'):
   166 
       
   167     if self._params.get('show_in_roles_overview'):
   167       # add to roles overview
   168       # add to roles overview
   168       addRole(self)
   169       addRole(self)
   169 
   170 
   170   @decorators.merge_params
   171   @decorators.merge_params
   171   @decorators.check_access
   172   @decorators.check_access