app/soc/views/models/base.py
changeset 500 44ea4620c5c0
parent 499 d22e4fe8e64b
child 502 e1e24c0a4e82
equal deleted inserted replaced
499:d22e4fe8e64b 500:44ea4620c5c0
   123   def public(self, request, page_name=None, params=None, **kwargs):
   123   def public(self, request, page_name=None, params=None, **kwargs):
   124     """Displays the public page for the entity specified by **kwargs.
   124     """Displays the public page for the entity specified by **kwargs.
   125 
   125 
   126     Args:
   126     Args:
   127       request: the standard Django HTTP request object
   127       request: the standard Django HTTP request object
   128       page: a soc.logic.site.page.Page object which is abstraction
   128       page_name: the page name displayed in templates as page and header title
   129         that combines a Django view with sidebar menu info
       
   130       params: a dict with params for this View
   129       params: a dict with params for this View
   131       kwargs: the Key Fields for the specified entity
   130       kwargs: the Key Fields for the specified entity
   132     """
   131     """
   133 
   132 
   134     params = dicts.merge(params, self._params)
   133     params = dicts.merge(params, self._params)
   166   def create(self, request, page_name=None, params=None, **kwargs):
   165   def create(self, request, page_name=None, params=None, **kwargs):
   167     """Displays the create page for this entity type.
   166     """Displays the create page for this entity type.
   168 
   167 
   169     Args:
   168     Args:
   170       request: the standard Django HTTP request object
   169       request: the standard Django HTTP request object
   171       page: a soc.logic.site.page.Page object which is abstraction
   170       page_name: the page name displayed in templates as page and header title
   172         that combines a Django view with sidebar menu info
       
   173       params: a dict with params for this View
   171       params: a dict with params for this View
   174       kwargs: not used for create()
   172       kwargs: not used for create()
   175     """
   173     """
   176 
   174 
   177     params = dicts.merge(params, self._params)
   175     params = dicts.merge(params, self._params)
   195   def edit(self, request, page_name=None, params=None, seed=None, **kwargs):
   193   def edit(self, request, page_name=None, params=None, seed=None, **kwargs):
   196     """Displays the edit page for the entity specified by **kwargs.
   194     """Displays the edit page for the entity specified by **kwargs.
   197 
   195 
   198     Args:
   196     Args:
   199       request: the standard Django HTTP request object
   197       request: the standard Django HTTP request object
   200       page: a soc.logic.site.page.Page object which is abstraction
   198       page_name: the page name displayed in templates as page and header title
   201         that combines a Django view with sidebar menu info
       
   202       params: a dict with params for this View
   199       params: a dict with params for this View
   203       kwargs: The Key Fields for the specified entity
   200       kwargs: The Key Fields for the specified entity
   204     """
   201     """
   205 
   202 
   206     params = dicts.merge(params, self._params)
   203     params = dicts.merge(params, self._params)
   309   def list(self, request, page_name=None, params=None):
   306   def list(self, request, page_name=None, params=None):
   310     """Displays the list page for the entity type.
   307     """Displays the list page for the entity type.
   311     
   308     
   312     Args:
   309     Args:
   313       request: the standard Django HTTP request object
   310       request: the standard Django HTTP request object
   314       page: a soc.logic.site.page.Page object which is abstraction
   311       page_name: the page name displayed in templates as page and header title
   315         that combines a Django view with sidebar menu info
       
   316       params: a dict with params for this View
   312       params: a dict with params for this View
   317     """
   313     """
   318 
   314 
   319     params = dicts.merge(params, self._params)
   315     params = dicts.merge(params, self._params)
   320 
   316 
   350   def delete(self, request, page_name=None, params=None, **kwargs):
   346   def delete(self, request, page_name=None, params=None, **kwargs):
   351     """Shows the delete page for the entity specified by **kwargs.
   347     """Shows the delete page for the entity specified by **kwargs.
   352 
   348 
   353     Args:
   349     Args:
   354       request: the standard Django HTTP request object
   350       request: the standard Django HTTP request object
   355       page: a soc.logic.site.page.Page object which is abstraction
   351       page_name: the page name displayed in templates as page and header title
   356         that combines a Django view with sidebar menu info
       
   357       params: a dict with params for this View
   352       params: a dict with params for this View
   358       kwargs: The Key Fields for the specified entity
   353       kwargs: The Key Fields for the specified entity
   359     """
   354     """
   360 
   355 
   361     params = dicts.merge(params, self._params)
   356     params = dicts.merge(params, self._params)