app/soc/views/models/request.py
changeset 662 0e89b027b140
parent 656 a76f1b443ea4
child 710 edb5dbb1dea7
equal deleted inserted replaced
661:d7b643255255 662:0e89b027b140
   196 
   196 
   197     # fill in the email field with the data from the entity
   197     # fill in the email field with the data from the entity
   198     form.fields['user'].initial = entity.link_id
   198     form.fields['user'].initial = entity.link_id
   199     form.fields['group'].initial = entity.scope_path
   199     form.fields['group'].initial = entity.scope_path
   200 
   200 
       
   201     super(View, self)._editGet(request, entity, form)
       
   202 
   201   def _editPost(self, request, entity, fields):
   203   def _editPost(self, request, entity, fields):
   202     """See base.View._editPost().
   204     """See base.View._editPost().
   203     """
   205     """
   204 
   206 
   205     # fill in the account field with the user created from email
   207     # fill in the account field with the user created from email
   206     fields['link_id'] = fields['requester'].link_id
   208     fields['link_id'] = fields['requester'].link_id
   207     fields['scope_path'] = fields['to'].link_id
   209     fields['scope_path'] = fields['to'].link_id
   208     fields['scope'] = fields['to']
   210     fields['scope'] = fields['to']
       
   211 
       
   212     super(View, self)._editPost(request, entity, fields)
   209 
   213 
   210 
   214 
   211 view = View()
   215 view = View()
   212 
   216 
   213 create = view.create
   217 create = view.create