Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit faff5959 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Refactor Error package to error.

Add absolute imports to all parts of the package.
parent 23cbdef2
......@@ -14,7 +14,7 @@ from import_api_app.resources.FetchMappingFile import FetchMappingFile
from import_api_app.resources.DeleteRecord import DeleteRecord
from import_api_app.resources.DeleteRecordset import DeleteRecordset
from import_api_app.resources.DeleteInstitution import DeleteInstitution
from import_api_app.helpers.Error import ImportApiError
from import_api_app.helpers.error import ImportApiError
import import_api_app.configuration
import os
......
from flask_restful import Resource, request
from resources.DeleteService import DeleteService
from import_api_app.resources.DeleteService import DeleteService
class DeleteInstitution(Resource):
......
from flask_restful import Resource, request
from resources.DeleteService import DeleteService
from import_api_app.resources.DeleteService import DeleteService
class DeleteRecord(Resource):
......
from flask_restful import Resource, request
from resources.DeleteService import DeleteService
from import_api_app.resources.DeleteService import DeleteService
class DeleteRecordset(Resource):
......
import os
from flask import current_app
from flask_restful import Resource
from helm import Helm
from helpers.Error import ImportApiError
from import_api_app.helm import Helm
from import_api_app.helpers.error import ImportApiError
class DeleteService(Resource):
......
from flask_restful import Resource, current_app
from kafka import KafkaProducer
from helpers.Error import ImportApiError
from import_api_app.helpers.error import ImportApiError
import paramiko
......@@ -69,7 +69,7 @@ class FetchMappingFile(Resource):
elif current_app.config['env'] == 'test':
envDir = '/test/'
remote_path = '/swissbib_index/mb_sftp' + envDir + recordset_id +\
remote_path = '/swissbib_index/mb_sftp' + envDir + recordset_id + \
'/config/' + fileName
try:
sftp_client.stat(remote_path)
......
......@@ -4,7 +4,7 @@ from datetime import datetime
import requests
from flask_restful import Resource, request
from flask_restful import current_app
from helpers.Error import ImportApiError
from import_api_app.helpers.error import ImportApiError
from requests.auth import HTTPBasicAuth
......
from flask_restful import Resource, request
from flask_restful import current_app
from helpers.Error import ImportApiError
from import_api_app.helpers.error import ImportApiError
import requests
import json
......
......@@ -10,4 +10,5 @@ jsonapi-requests
requests
kafka-python
pysftp
pyyaml
\ No newline at end of file
pyyaml
paramiko
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment