app/soc/views/person/profile.py
changeset 358 843d83b87282
parent 324 05e21c089be6
child 365 74dec172944e
equal deleted inserted replaced
357:9bd78a5073c2 358:843d83b87282
    52 
    52 
    53     #: list of model fields which will *not* be gathered by the form
    53     #: list of model fields which will *not* be gathered by the form
    54     exclude = ['user']
    54     exclude = ['user']
    55 
    55 
    56 
    56 
    57 def edit(request, program=None, link_name=None,
    57 def edit(request, page=None, program=None, link_name=None,
    58          template='soc/person/profile/edit.html'):
    58          template='soc/person/profile/edit.html'):
    59   """View for a Person to modify the properties of a Person Model.
    59   """View for a Person to modify the properties of a Person Model.
    60 
    60 
    61   Args:
    61   Args:
    62     request: the standard django request object.
    62     request: the standard django request object.
       
    63     page: a soc.logic.site.page.Page object which is abstraction that combines 
       
    64       a Django view with sidebar menu info
    63     template: the template path to use for rendering the template.
    65     template: the template path to use for rendering the template.
    64 
    66 
    65   Returns:
    67   Returns:
    66     A subclass of django.http.HttpResponse which either contains the form to
    68     A subclass of django.http.HttpResponse which either contains the form to
    67     be filled out, or a redirect to the correct view in the interface.
    69     be filled out, or a redirect to the correct view in the interface.