コード例 #1
0
 def _process(self, args):
     create_blocking(created_by=session.user, **args)
     return jsonify_data(flash=False)
コード例 #2
0
 def _process(self, args):
     blocking = create_blocking(created_by=session.user, **args)
     return jsonify(blockings_schema.dump(blocking, many=False).data)
コード例 #3
0
 def _process(self, args):
     blocking = create_blocking(created_by=session.user, **args)
     approve_or_request_blocking(blocking)
     return jsonify_data(flash=False)