--- a/app/soc/views/models/user_self.py Wed Dec 03 23:48:33 2008 +0000
+++ b/app/soc/views/models/user_self.py Wed Dec 03 23:49:10 2008 +0000
@@ -223,15 +223,21 @@
def _editGet(self, request, entity, form):
"""See base.View._editGet().
"""
+
# fill in the email field with the data from the entity
form.fields['email'].initial = entity.account.email()
+ super(View, self)._editGet(request ,entity, form)
+
def _editPost(self, request, entity, fields):
"""See base.View._editPost().
"""
+
# fill in the account field with the user created from email
fields['account'] = users.User(fields['email'])
+ super(View, self)._editPost(request, entity, fields)
+
def getSidebarLinks(self, request, params=None):
"""Returns an dictionary with the user sidebar entry.
"""