equal
deleted
inserted
replaced
144 |
144 |
145 |
145 |
146 def _editGet(self, request, entity, form): |
146 def _editGet(self, request, entity, form): |
147 """See base.View._editGet(). |
147 """See base.View._editGet(). |
148 """ |
148 """ |
|
149 |
149 # fill in the email field with the data from the entity |
150 # fill in the email field with the data from the entity |
150 form.fields['email'].initial = entity.account.email() |
151 form.fields['email'].initial = entity.account.email() |
|
152 |
|
153 super(View, self)._editGet(request, entity, form) |
151 |
154 |
152 def _editPost(self, request, entity, fields): |
155 def _editPost(self, request, entity, fields): |
153 """See base.View._editPost(). |
156 """See base.View._editPost(). |
154 """ |
157 """ |
|
158 |
155 # fill in the account field with the user created from email |
159 # fill in the account field with the user created from email |
156 fields['account'] = users.User(fields['email']) |
160 fields['account'] = users.User(fields['email']) |
157 |
161 |
|
162 super(View, self)._editPost(request, entity, fields) |
158 |
163 |
159 view = View() |
164 view = View() |
160 |
165 |
161 create = view.create |
166 create = view.create |
162 delete = view.delete |
167 delete = view.delete |