app/soc/views/site/user/list.py
changeset 233 42733f531ebf
parent 232 7741d6b7ce7c
child 263 9b39d93b677f
equal deleted inserted replaced
232:7741d6b7ce7c 233:42733f531ebf
    31 
    31 
    32 DEF_SITE_USER_LIST_ALL_TMPL = 'soc/site/user/list/all.html'
    32 DEF_SITE_USER_LIST_ALL_TMPL = 'soc/site/user/list/all.html'
    33 
    33 
    34 def all(request, template=DEF_SITE_USER_LIST_ALL_TMPL):
    34 def all(request, template=DEF_SITE_USER_LIST_ALL_TMPL):
    35   """Show a list of all Users (limit rows per page).
    35   """Show a list of all Users (limit rows per page).
       
    36   
       
    37   Args:
       
    38     request: the standard Django HTTP request object
       
    39     template: the "sibling" template (or a search list of such templates)
       
    40       from which to construct an alternate template name (or names)
       
    41 
       
    42   Returns:
       
    43     A subclass of django.http.HttpResponse which either contains the form to
       
    44     be filled out, or a redirect to the correct view in the interface.
    36   """
    45   """
    37   # create default template context for use with any templates
    46   # create default template context for use with any templates
    38   context = response_helpers.getUniversalContext(request)
    47   context = response_helpers.getUniversalContext(request)
    39 
    48 
    40   alt_response = simple.getAltResponseIfNotDeveloper(request,
    49   alt_response = simple.getAltResponseIfNotDeveloper(request,