app/soc/views/models/home_settings.py
changeset 471 dcb1f7821b39
parent 466 ad2908f1646a
child 477 8a8b1bd035c4
equal deleted inserted replaced
470:7ba510d3fad3 471:dcb1f7821b39
    97 
    97 
    98 class View(base.View):
    98 class View(base.View):
    99   """View methods for the Docs model
    99   """View methods for the Docs model
   100   """
   100   """
   101 
   101 
   102   def __init__(self, original_params=None, original_rights=None, stop=False):
   102   def __init__(self, original_params=None, original_rights=None):
   103     """Defines the fields and methods required for the base View class
   103     """Defines the fields and methods required for the base View class
   104     to provide the user with list, public, create, edit and delete views.
   104     to provide the user with list, public, create, edit and delete views.
   105 
   105 
   106     Params:
   106     Params:
   107       original_params: a dict with params for this View
   107       original_params: a dict with params for this View
   143     rights['delete'] = [helper.access.checkIsDeveloper]
   143     rights['delete'] = [helper.access.checkIsDeveloper]
   144 
   144 
   145     params = dicts.merge(original_params, params)
   145     params = dicts.merge(original_params, params)
   146     rights = dicts.merge(original_rights, rights)
   146     rights = dicts.merge(original_rights, rights)
   147 
   147 
   148     base.View.__init__(self, rights=rights, params=params, stop=stop)
   148     base.View.__init__(self, rights=rights, params=params)
   149 
   149 
   150     self._logic = soc.logic.models.home_settings.logic
   150     self._logic = soc.logic.models.home_settings.logic
   151 
   151 
   152   def _public(self, request, entity, context):
   152   def _public(self, request, entity, context):
   153     """
   153     """