app/soc/views/models/base.py
changeset 1017 6ad4fdb48840
parent 977 d212d5f4c41a
child 1035 04229d710ce9
equal deleted inserted replaced
1016:15a2f644725f 1017:6ad4fdb48840
   724     """
   724     """
   725 
   725 
   726     return self._params
   726     return self._params
   727 
   727 
   728   @decorators.merge_params
   728   @decorators.merge_params
   729   def getSidebarMenus(self, params=None):
   729   def getSidebarMenus(self, id, user, params=None):
   730     """Returns an dictionary with one sidebar entry.
   730     """Returns an dictionary with one sidebar entry.
   731 
   731 
   732     Args:
   732     Args:
   733       params: a dict with params for this View
   733       params: a dict with params for this View
   734 
   734 
   736       The params dictionary is passed as argument to getSidebarItems
   736       The params dictionary is passed as argument to getSidebarItems
   737       from the soc.views.sitemap.sidebar module, see the docstring
   737       from the soc.views.sitemap.sidebar module, see the docstring
   738       of _getSidebarItems on how it uses it.
   738       of _getSidebarItems on how it uses it.
   739     """
   739     """
   740 
   740 
   741     return sitemap.sidebar.getSidebarMenus(params=params)
   741     return sitemap.sidebar.getSidebarMenus(id, user, params=params)
   742 
   742 
   743   @decorators.merge_params
   743   @decorators.merge_params
   744   def getDjangoURLPatterns(self, params=None):
   744   def getDjangoURLPatterns(self, params=None):
   745     """Retrieves a list of sidebar entries for this view
   745     """Retrieves a list of sidebar entries for this view
   746 
   746