app/soc/views/models/base.py
changeset 957 5b657063b23b
parent 939 b341698bf3b1
child 970 8b5611d5b053
equal deleted inserted replaced
956:aaac33732ad5 957:5b657063b23b
    90       public_template: The public_template value is used as template
    90       public_template: The public_template value is used as template
    91         to display the public page of the found entity.
    91         to display the public page of the found entity.
    92 
    92 
    93     Args:
    93     Args:
    94       request: the standard Django HTTP request object
    94       request: the standard Django HTTP request object
       
    95       access_type : the name of the access type which should be checked
    95       page_name: the page name displayed in templates as page and header title
    96       page_name: the page name displayed in templates as page and header title
    96       params: a dict with params for this View
    97       params: a dict with params for this View
    97       kwargs: the Key Fields for the specified entity
    98       kwargs: the Key Fields for the specified entity
    98     """
    99     """
    99 
   100 
   144         the Content-Type header of the HTTP response.  If empty (or None),
   145         the Content-Type header of the HTTP response.  If empty (or None),
   145         public() is called instead.
   146         public() is called instead.
   146 
   147 
   147     Args:
   148     Args:
   148       request: the standard Django HTTP request object
   149       request: the standard Django HTTP request object
       
   150       access_type : the name of the access type which should be checked
   149       page_name: the page name displayed in templates as page and header title
   151       page_name: the page name displayed in templates as page and header title
   150       params: a dict with params for this View
   152       params: a dict with params for this View
   151       kwargs: the Key Fields for the specified entity
   153       kwargs: the Key Fields for the specified entity
   152     """
   154     """
   153 
   155 
   192       The params dictionary is passed on to edit, see the docstring
   194       The params dictionary is passed on to edit, see the docstring
   193       for edit on how it uses it.
   195       for edit on how it uses it.
   194 
   196 
   195     Args:
   197     Args:
   196       request: the standard Django HTTP request object
   198       request: the standard Django HTTP request object
       
   199       access_type : the name of the access type which should be checked
   197       page_name: the page name displayed in templates as page and header title
   200       page_name: the page name displayed in templates as page and header title
   198       params: a dict with params for this View
   201       params: a dict with params for this View
   199       kwargs: not used for create()
   202       kwargs: not used for create()
   200     """
   203     """
   201 
   204 
   242       error_public: The error_public value is used as the template for
   245       error_public: The error_public value is used as the template for
   243         the error response mentioned above.
   246         the error response mentioned above.
   244 
   247 
   245     Args:
   248     Args:
   246       request: the standard Django HTTP request object
   249       request: the standard Django HTTP request object
       
   250       access_type : the name of the access type which should be checked
   247       page_name: the page name displayed in templates as page and header title
   251       page_name: the page name displayed in templates as page and header title
   248       params: a dict with params for this View
   252       params: a dict with params for this View
   249       kwargs: The Key Fields for the specified entity
   253       kwargs: The Key Fields for the specified entity
   250     """
   254     """
   251 
   255 
   404            page_name=None, params=None, filter=None):
   408            page_name=None, params=None, filter=None):
   405     """Displays the list page for the entity type.
   409     """Displays the list page for the entity type.
   406     
   410     
   407     Args:
   411     Args:
   408       request: the standard Django HTTP request object
   412       request: the standard Django HTTP request object
       
   413       access_type : the name of the access type which should be checked
   409       page_name: the page name displayed in templates as page and header title
   414       page_name: the page name displayed in templates as page and header title
   410       params: a dict with params for this View
   415       params: a dict with params for this View
   411       filter: a dict for the properties that the entities should have
   416       filter: a dict for the properties that the entities should have
   412 
   417 
   413     Params usage:
   418     Params usage:
   458              page_name=None, params=None, **kwargs):
   463              page_name=None, params=None, **kwargs):
   459     """Shows the delete page for the entity specified by **kwargs.
   464     """Shows the delete page for the entity specified by **kwargs.
   460 
   465 
   461     Args:
   466     Args:
   462       request: the standard Django HTTP request object
   467       request: the standard Django HTTP request object
       
   468       access_type : the name of the access type which should be checked
   463       page_name: the page name displayed in templates as page and header title
   469       page_name: the page name displayed in templates as page and header title
   464       params: a dict with params for this View
   470       params: a dict with params for this View
   465       kwargs: The Key Fields for the specified entity
   471       kwargs: The Key Fields for the specified entity
   466 
   472 
   467     Params usage:
   473     Params usage:
   553       The params dictionary is passed to self.select, refer
   559       The params dictionary is passed to self.select, refer
   554         to its docstring for details on how it uses it.
   560         to its docstring for details on how it uses it.
   555 
   561 
   556     Args:
   562     Args:
   557       request: the standard Django HTTP request object
   563       request: the standard Django HTTP request object
       
   564       access_type : the name of the access type which should be checked
   558       page_name: the page name displayed in templates as page and header title
   565       page_name: the page name displayed in templates as page and header title
   559       params: a dict with params for this View
   566       params: a dict with params for this View
   560     """
   567     """
   561 
   568 
   562     get_dict = request.GET
   569     get_dict = request.GET