diff -r ab47d3f494b3 -r 74dec172944e app/soc/views/person/profile.py --- a/app/soc/views/person/profile.py Thu Oct 16 23:26:58 2008 +0000 +++ b/app/soc/views/person/profile.py Thu Oct 16 23:31:57 2008 +0000 @@ -30,12 +30,12 @@ from google.appengine.api import users -from django import forms from django import http from django import shortcuts from soc.models import person from soc.views import helper +from soc.views.helper import decorators import soc.views.helper.forms @@ -54,6 +54,7 @@ exclude = ['user'] +@decorators.view def edit(request, page=None, program=None, link_name=None, template='soc/person/profile/edit.html'): """View for a Person to modify the properties of a Person Model. @@ -85,7 +86,7 @@ # display name to use in the greeting form = EditForm() - if request.method=='POST': + if request.method == 'POST': form = EditForm(request.POST) if not form.errors: @@ -93,4 +94,4 @@ return shortcuts.render_to_response( template, dictionary={'template': template, 'form': form, 'user': user, - 'program': program, 'link_name': link_name}) + 'program': program, 'link_name': link_name}) \ No newline at end of file