Пример #1
0
 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)
Пример #2
0
 def get_namespace(self, resource, context):
     namespace = FieldsAutomaticEditView.get_namespace(self, resource, context)
     namespace['before'] = self.get_introduction(resource, context)
     return namespace