app/soc/views/site/sponsor/list.py
changeset 358 843d83b87282
parent 344 d135c8c09967
child 360 5ad9cabb5892
equal deleted inserted replaced
357:9bd78a5073c2 358:843d83b87282
    35 import soc.views.out_of_band
    35 import soc.views.out_of_band
    36 
    36 
    37 
    37 
    38 DEF_SITE_SPONSOR_LIST_ALL_TMPL = 'soc/group/list/all.html'
    38 DEF_SITE_SPONSOR_LIST_ALL_TMPL = 'soc/group/list/all.html'
    39 
    39 
    40 def all(request, template=DEF_SITE_SPONSOR_LIST_ALL_TMPL):
    40 def all(request, page=None, template=DEF_SITE_SPONSOR_LIST_ALL_TMPL):
    41   """Show a list of all Sponsors (limit rows per page).
    41   """Show a list of all Sponsors (limit rows per page).
       
    42   
       
    43   Args:
       
    44     request: the standard Django HTTP request object
       
    45     page: a soc.logic.site.page.Page object which is abstraction that combines 
       
    46       a Django view with sidebar menu info
       
    47     template: the "sibling" template (or a search list of such templates)
       
    48       from which to construct an alternate template name (or names)
       
    49 
       
    50   Returns:
       
    51     A subclass of django.http.HttpResponse which either contains the form to
       
    52     be filled out, or a redirect to the correct view in the interface.
    42   """
    53   """
    43 
    54 
    44   try:
    55   try:
    45     access.checkIsDeveloper(request)
    56     access.checkIsDeveloper(request)
    46   except  soc.views.out_of_band.AccessViolationResponse, alt_response:
    57   except  soc.views.out_of_band.AccessViolationResponse, alt_response: