app/soc/views/models/user_self.py
changeset 662 0e89b027b140
parent 660 5a381b290691
child 696 0d8515fb5314
equal deleted inserted replaced
661:d7b643255255 662:0e89b027b140
   221     return helper.responses.respond(request, template, context)
   221     return helper.responses.respond(request, template, context)
   222   
   222   
   223   def _editGet(self, request, entity, form):
   223   def _editGet(self, request, entity, form):
   224     """See base.View._editGet().
   224     """See base.View._editGet().
   225     """
   225     """
       
   226 
   226     # fill in the email field with the data from the entity
   227     # fill in the email field with the data from the entity
   227     form.fields['email'].initial = entity.account.email()
   228     form.fields['email'].initial = entity.account.email()
   228 
   229 
       
   230     super(View, self)._editGet(request ,entity, form)
       
   231 
   229   def _editPost(self, request, entity, fields):
   232   def _editPost(self, request, entity, fields):
   230     """See base.View._editPost().
   233     """See base.View._editPost().
   231     """
   234     """
       
   235 
   232     # fill in the account field with the user created from email
   236     # fill in the account field with the user created from email
   233     fields['account'] = users.User(fields['email'])
   237     fields['account'] = users.User(fields['email'])
       
   238 
       
   239     super(View, self)._editPost(request, entity, fields)
   234 
   240 
   235   def getSidebarLinks(self, request, params=None):
   241   def getSidebarLinks(self, request, params=None):
   236     """Returns an dictionary with the user sidebar entry.
   242     """Returns an dictionary with the user sidebar entry.
   237     """
   243     """
   238 
   244