Correct the imports to use cerc-hub as a pip package
This commit is contained in:
parent
01ff8332f9
commit
82be9ee660
|
@ -9,8 +9,8 @@ import datetime
|
|||
|
||||
import flask
|
||||
import yaml
|
||||
from flasgger import LazyJSONEncoder, Swagger, swag_from
|
||||
from flask import Response, jsonify
|
||||
from flasgger import LazyJSONEncoder, Swagger
|
||||
from flask import Response
|
||||
from flask_restful import Api
|
||||
|
||||
import hub_api.helpers.session_helper as sh
|
||||
|
|
|
@ -8,14 +8,13 @@ import json
|
|||
|
||||
from flask import request, Response
|
||||
from flask_restful import Resource
|
||||
|
||||
from catalog_factories.data_models.construction.archetype import Archetype
|
||||
from catalog_factories.data_models.construction.construction import Construction
|
||||
from catalog_factories.data_models.construction.material import Material
|
||||
from catalog_factories.data_models.construction.window import Window
|
||||
from hub.catalog_factories.data_models.construction.archetype import Archetype
|
||||
from hub.catalog_factories.data_models.construction.construction import Construction
|
||||
from hub.catalog_factories.data_models.construction.material import Material
|
||||
from hub.catalog_factories.data_models.construction.window import Window
|
||||
from hub_api.helpers.session_helper import refresh_session
|
||||
from hub_api.helpers.auth import role_required
|
||||
from persistence.models import UserRoles
|
||||
from hub.persistence.models import UserRoles
|
||||
|
||||
|
||||
class ToJson:
|
||||
|
|
|
@ -7,9 +7,9 @@ Copyright © 2022 Project Author name guillermo.gutierrezmorote@concordia.ca
|
|||
import json
|
||||
from flask import request, Response
|
||||
from flask_restful import Resource
|
||||
from catalog_factories.data_models.greenery.plant import Plant
|
||||
from catalog_factories.data_models.greenery.soil import Soil
|
||||
from catalog_factories.data_models.greenery.vegetation import Vegetation
|
||||
from hub.catalog_factories.data_models.greenery.plant import Plant
|
||||
from hub.catalog_factories.data_models.greenery.soil import Soil
|
||||
from hub.catalog_factories.data_models.greenery.vegetation import Vegetation
|
||||
from hub_api.helpers.session_helper import refresh_session
|
||||
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import os
|
|||
from jwt.utils import get_int_from_datetime
|
||||
from functools import wraps
|
||||
from flask import request, g
|
||||
from hub_logger import logger
|
||||
from persistence.models import UserRoles
|
||||
from hub.hub_logger import logger
|
||||
from hub.persistence.models import UserRoles
|
||||
from jwt.exceptions import JWTException
|
||||
|
||||
instance = JWT()
|
||||
|
|
|
@ -6,12 +6,12 @@ Copyright © 2023 Project Author Peter Yefi peteryefi@gmail.com
|
|||
import json
|
||||
from flask import Response, request
|
||||
from flask_restful import Resource
|
||||
from imports.user_factory import UserFactory
|
||||
from exports.user_factory import UserFactory as ExUserFactory
|
||||
from hub.imports.user_factory import UserFactory
|
||||
from hub.exports.user_factory import UserFactory as ExUserFactory
|
||||
import os
|
||||
from hub_logger import logger
|
||||
from hub.hub_logger import logger
|
||||
from hub_api.helpers.auth import generate_auth_token, role_required
|
||||
from persistence.models import UserRoles
|
||||
from hub.persistence.models import UserRoles
|
||||
|
||||
|
||||
class User(Resource):
|
||||
|
|
|
@ -24,3 +24,4 @@ pyecore==0.12.2
|
|||
jwt==1.3.1
|
||||
flagger==3.1.0
|
||||
flasgger
|
||||
cerc-hub
|
Loading…
Reference in New Issue
Block a user