示例#1
0
文件: timeline.py 项目: vintas/indico
 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)
示例#2
0
 def _process(self):
     return EditableSchema(context={
         'user': session.user
     }).jsonify(self.editable)
示例#3
0
 def _process(self):
     return EditableSchema().jsonify(self.editable)