|
|
|
|
|
|
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
def post(self, app_id, action): |
|
|
def post(self, app_id, action): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
app_id = str(app_id) |
|
|
app_id = str(app_id) |
|
|
|
|
|
|
|
|
@login_required |
|
|
@login_required |
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
def get(self, app_id): |
|
|
def get(self, app_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
app_id = str(app_id) |
|
|
app_id = str(app_id) |
|
|
|
|
|
|
|
|
@login_required |
|
|
@login_required |
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
def post(self, app_id, annotation_setting_id): |
|
|
def post(self, app_id, annotation_setting_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
app_id = str(app_id) |
|
|
app_id = str(app_id) |
|
|
|
|
|
|
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
def get(self, app_id, job_id, action): |
|
|
def get(self, app_id, job_id, action): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
job_id = str(job_id) |
|
|
job_id = str(job_id) |
|
|
|
|
|
|
|
|
@login_required |
|
|
@login_required |
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
def get(self, app_id): |
|
|
def get(self, app_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
page = request.args.get('page', default=1, type=int) |
|
|
page = request.args.get('page', default=1, type=int) |
|
|
|
|
|
|
|
|
@login_required |
|
|
@login_required |
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
def get(self, app_id): |
|
|
def get(self, app_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
app_id = str(app_id) |
|
|
app_id = str(app_id) |
|
|
|
|
|
|
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
@marshal_with(annotation_fields) |
|
|
@marshal_with(annotation_fields) |
|
|
def post(self, app_id): |
|
|
def post(self, app_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
app_id = str(app_id) |
|
|
app_id = str(app_id) |
|
|
|
|
|
|
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
@marshal_with(annotation_fields) |
|
|
@marshal_with(annotation_fields) |
|
|
def post(self, app_id, annotation_id): |
|
|
def post(self, app_id, annotation_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
app_id = str(app_id) |
|
|
app_id = str(app_id) |
|
|
|
|
|
|
|
|
@login_required |
|
|
@login_required |
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
def delete(self, app_id, annotation_id): |
|
|
def delete(self, app_id, annotation_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
app_id = str(app_id) |
|
|
app_id = str(app_id) |
|
|
|
|
|
|
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
def post(self, app_id): |
|
|
def post(self, app_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
app_id = str(app_id) |
|
|
app_id = str(app_id) |
|
|
|
|
|
|
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
@cloud_edition_billing_resource_check('annotation') |
|
|
def get(self, app_id, job_id): |
|
|
def get(self, app_id, job_id): |
|
|
# The role of the current user in the ta table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
job_id = str(job_id) |
|
|
job_id = str(job_id) |
|
|
|
|
|
|
|
|
@login_required |
|
|
@login_required |
|
|
@account_initialization_required |
|
|
@account_initialization_required |
|
|
def get(self, app_id, annotation_id): |
|
|
def get(self, app_id, annotation_id): |
|
|
# The role of the current user in the table must be admin or owner |
|
|
|
|
|
if not current_user.is_admin_or_owner: |
|
|
|
|
|
|
|
|
if not current_user.is_editor: |
|
|
raise Forbidden() |
|
|
raise Forbidden() |
|
|
|
|
|
|
|
|
page = request.args.get('page', default=1, type=int) |
|
|
page = request.args.get('page', default=1, type=int) |