def _process(self): custom_actions = self._get_custom_actions() custom_actions_ctx = {self.editable.revisions[-1]: custom_actions} schema = EditableSchema(context={ 'user': session.user, 'custom_actions': custom_actions_ctx }) return schema.jsonify(self.editable)
def _process(self): return EditableSchema(context={ 'user': session.user }).jsonify(self.editable)
def _process(self): return EditableSchema().jsonify(self.editable)