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