equal
deleted
inserted
replaced
149 form.fields['doc_scope_path'].initial = entity.home.scope_path |
149 form.fields['doc_scope_path'].initial = entity.home.scope_path |
150 form.fields['doc_link_id'].initial = entity.home.link_id |
150 form.fields['doc_link_id'].initial = entity.home.link_id |
151 except db.Error: |
151 except db.Error: |
152 pass |
152 pass |
153 |
153 |
|
154 super(View, self)._editGet(request, entity, form) |
|
155 |
154 def _editPost(self, request, entity, fields): |
156 def _editPost(self, request, entity, fields): |
155 """See base.View._editPost(). |
157 """See base.View._editPost(). |
156 """ |
158 """ |
157 |
159 |
158 doc_scope_path = fields['doc_scope_path'] |
160 doc_scope_path = fields['doc_scope_path'] |
162 home_doc = document_logic.logic.getFromFields( |
164 home_doc = document_logic.logic.getFromFields( |
163 scope_path=doc_scope_path, link_id=doc_link_id) |
165 scope_path=doc_scope_path, link_id=doc_link_id) |
164 |
166 |
165 fields['home'] = home_doc |
167 fields['home'] = home_doc |
166 |
168 |
|
169 super(View, self)._editPost(request, entity, fields) |
|
170 |
167 |
171 |
168 view = View() |
172 view = View() |
169 |
173 |
170 create = view.create |
174 create = view.create |
171 edit = view.edit |
175 edit = view.edit |