def action(self, resource, context, form): self.check_edit_conflict(resource, context, form) if context.edit_conflict: return EditView.action(self, resource, context, form) return FieldsAutomaticEditView.action(self, resource, context, form)
def get_namespace(self, resource, context): namespace = FieldsAutomaticEditView.get_namespace(self, resource, context) namespace['before'] = self.get_introduction(resource, context) return namespace