Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
import mods for reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
zzeppozz committed Nov 18, 2021
1 parent 30e51cb commit 1334ed9
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@
* Set up python virtual environment for the project
* Connect IDE to venv python interpreter
* Run flask at command prompt
* Assuming that the project directory is

```zsh
export PROJDIR=~/git/lmtrex
cd $PROJDIR/lmtrex/flask_app/broker/

export PYTHONPATH=$PROJECT_DIR
export FLASK_ENV=development
export FLASK_APP=routes
flask run
```

Expand Down
2 changes: 1 addition & 1 deletion lmtrex/flask_app/broker/resolve.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from http import HTTPStatus
from werkzeug.exceptions import (BadRequest, InternalServerError)

from lmtrex.common.lmconstants import (APIService, ServiceProvider)
from lmtrex.common.lmconstants import (APIService)
from lmtrex.common.s2n_type import (S2nKey, S2nOutput, S2nSchema, print_s2n_output)
from lmtrex.flask_app.broker.base import _S2nService
from lmtrex.tools.provider.specify_resolver import SpecifyResolverAPI
Expand Down
6 changes: 3 additions & 3 deletions lmtrex/tools/misc/dwca.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from lmtrex.common.lmconstants import (
SPECIFY_ARK_PREFIX, DWCA, ENCODING, TEST_SPECIFY7_SERVER, TST_VALUES,
SPECIFY7_RECORD_ENDPOINT, SPECIFY7_SERVER_KEY, SPCOCO_FIELDS)
from lmtrex.fileop.logtools import (LMLog, log_info, log_warn, log_error)
from lmtrex.fileop.csvtools import (get_csv_dict_reader, get_csv_dict_writer)
from lmtrex.fileop.ready_file import ready_filename, delete_file
from lmtrex.tools.fileop.logtools import (LMLog, log_info, log_warn, log_error)
from lmtrex.tools.fileop.csvtools import (get_csv_dict_reader, get_csv_dict_writer)
from lmtrex.tools.fileop.ready_file import ready_filename, delete_file
from lmtrex.tools.provider.api import APIQuery
import lmtrex.tools.misc.solr as SpSolr
from lmtrex.tools.s2n.utils import is_valid_uuid
Expand Down
2 changes: 1 addition & 1 deletion lmtrex/tools/misc/lm_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Note: Mainly wraps elementTree functionality to fit Lifemapper needs
"""
from lmtrex.tools.attribute_object import LmAttList, LmAttObj
from lmtrex.tools.misc.attribute_object import LmAttList, LmAttObj

from types import (BuiltinFunctionType, BuiltinMethodType, FunctionType,
LambdaType, MethodType)
Expand Down
4 changes: 2 additions & 2 deletions lmtrex/tools/provider/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

from lmtrex.common.lmconstants import (URL_ESCAPES, ENCODING)
from lmtrex.common.s2n_type import S2nKey, S2nOutput
from lmtrex.fileop.logtools import (log_warn)
from lmtrex.tools.lm_xml import fromstring, deserialize
from lmtrex.tools.fileop.logtools import (log_warn)
from lmtrex.tools.misc.lm_xml import fromstring, deserialize
from lmtrex.tools.s2n.utils import add_errinfo, combine_errinfo, get_traceback

import lmtrex.tools.s2n.utils as lmutil
Expand Down
2 changes: 1 addition & 1 deletion lmtrex/tools/provider/gbif.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from lmtrex.common.lmconstants import (
APIService, GBIF, ServiceProvider, URL_ESCAPES, ENCODING)
from lmtrex.common.s2n_type import S2nEndpoint, S2nKey, S2nOutput, S2nSchema
from lmtrex.fileop.logtools import (log_info, log_error)
from lmtrex.tools.fileop.logtools import (log_info, log_error)


from lmtrex.tools.provider.api import APIQuery
Expand Down
4 changes: 2 additions & 2 deletions lmtrex/tools/provider/idigbio.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from lmtrex.common.lmconstants import (
GBIF_MISSING_KEY, Idigbio, ServiceProvider, ENCODING, DATA_DUMP_DELIMITER)
from lmtrex.common.s2n_type import S2nEndpoint, S2nKey, S2nSchema
from lmtrex.fileop.logtools import (log_info)
from lmtrex.fileop.ready_file import ready_filename
from lmtrex.tools.fileop.logtools import (log_info)
from lmtrex.tools.fileop.ready_file import ready_filename

from lmtrex.tools.provider.api import APIQuery
from lmtrex.tools.s2n.utils import add_errinfo
Expand Down
2 changes: 1 addition & 1 deletion lmtrex/tools/provider/itis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from lmtrex.common.lmconstants import (
ITIS, ServiceProvider, URL_ESCAPES, TST_VALUES)
from lmtrex.common.s2n_type import S2nEndpoint, S2nOutput, S2nSchema
from lmtrex.fileop.logtools import log_info
from lmtrex.tools.fileop.logtools import log_info
from lmtrex.tools.provider.api import APIQuery
from lmtrex.tools.s2n.utils import get_traceback, add_errinfo

Expand Down
2 changes: 1 addition & 1 deletion lmtrex/tools/provider/mopho.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from lmtrex.common.lmconstants import (MorphoSource, ServiceProvider, TST_VALUES)
from lmtrex.common.s2n_type import S2nEndpoint, S2nKey, S2nSchema
from lmtrex.fileop.logtools import (log_info)
from lmtrex.tools.fileop.logtools import (log_info)
from lmtrex.tools.provider.api import APIQuery
from lmtrex.tools.s2n.utils import add_errinfo, get_traceback

Expand Down
2 changes: 1 addition & 1 deletion tests/test_specify_resolver/test_dwca.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import shutil
import time

from lmtrex.tools.dwca import (
from lmtrex.tools.misc.dwca import (
assemble_download_filename, DwCArchive, get_dwca_urls, download_dwca)
from lmtrex.tools.s2n.utils import is_valid_uuid
from lmtrex.common.lmconstants import (DWCA, TST_VALUES)
Expand Down

0 comments on commit 1334ed9

Please sign in to comment.