Skip to content
Snippets Groups Projects
Verified Commit 85596619 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

MAINT: roll-back some renaming changes (linkaheadadvancedtools)

parent c0fc1646
No related branches found
No related tags found
No related merge requests found
Pipeline #48438 failed
...@@ -79,7 +79,7 @@ Then sync the model: ...@@ -79,7 +79,7 @@ Then sync the model:
.. code:: python .. code:: python
import linkahead as db import linkahead as db
from linkaheadadvancedtools.models.parser import parse_model_from_json_schema from caosadvancedtools.models.parser import parse_model_from_json_schema
model = parse_model_from_yaml("datamodel.yaml") model = parse_model_from_yaml("datamodel.yaml")
model.sync_data_model(noquestion=True) model.sync_data_model(noquestion=True)
...@@ -232,6 +232,6 @@ The solution is to create the RecordTypes, e.g. using the Python interface, as f ...@@ -232,6 +232,6 @@ The solution is to create the RecordTypes, e.g. using the Python interface, as f
The data model is also included in the ``tools/query_template_datamodel.yml`` The data model is also included in the ``tools/query_template_datamodel.yml``
within this repository which can be imported into your database with ``python -m within this repository which can be imported into your database with ``python -m
linkaheadadvancedtools.models.parser --sync query_template_datamodel.yml`` (you need caosadvancedtools.models.parser --sync query_template_datamodel.yml`` (you need
to have `LinkAhead Advanced User to have `LinkAhead Advanced User
Tools<https://pypi.org/project/linkaheadadvancedtools/>`__ installed and configured). Tools<https://pypi.org/project/caosadvancedtools/>`__ installed and configured).
...@@ -32,7 +32,7 @@ from zipfile import ZipFile ...@@ -32,7 +32,7 @@ from zipfile import ZipFile
import linkahead as db import linkahead as db
import pandas as pd import pandas as pd
from linkaheadadvancedtools.serverside import helper from caosadvancedtools.serverside import helper
from linkahead import LinkAheadException, ConsistencyError, EntityDoesNotExistError from linkahead import LinkAheadException, ConsistencyError, EntityDoesNotExistError
...@@ -81,14 +81,14 @@ def collect_files_in_zip(ids, table): ...@@ -81,14 +81,14 @@ def collect_files_in_zip(ids, table):
# Desired behavior: The script should go on with the other # Desired behavior: The script should go on with the other
# ids, but the user should be informed about the missing files. # ids, but the user should be informed about the missing files.
# How should we do this? # How should we do this?
logger = logging.getLogger("linkaheadadvancedtools") logger = logging.getLogger("caosadvancedtools")
logger.error("Did not find Entity with ID={}.".format( logger.error("Did not find Entity with ID={}.".format(
file_id)) file_id))
raise e raise e
savename = nc.get_unique_savename(os.path.basename(tmp.path)) savename = nc.get_unique_savename(os.path.basename(tmp.path))
val_file = helper.get_file_via_download( val_file = helper.get_file_via_download(
tmp, logger=logging.getLogger("linkaheadadvancedtools")) tmp, logger=logging.getLogger("caosadvancedtools"))
zf.write(val_file, savename) zf.write(val_file, savename)
......
...@@ -35,8 +35,8 @@ from datetime import datetime ...@@ -35,8 +35,8 @@ from datetime import datetime
import linkahead as db import linkahead as db
import pandas as pd import pandas as pd
from linkaheadadvancedtools.serverside.helper import get_argument_parser from caosadvancedtools.serverside.helper import get_argument_parser
from linkaheadadvancedtools.serverside.logging import configure_server_side_logging from caosadvancedtools.serverside.logging import configure_server_side_logging
MAXIMUMFILESIZE = 1e8 MAXIMUMFILESIZE = 1e8
VALID_ENDINGS = [".csv", ".tsv", ".xls", ".xlsx"] VALID_ENDINGS = [".csv", ".tsv", ".xls", ".xlsx"]
...@@ -135,7 +135,7 @@ if __name__ == "__main__": ...@@ -135,7 +135,7 @@ if __name__ == "__main__":
args = parser.parse_args() args = parser.parse_args()
debug_file = configure_server_side_logging() debug_file = configure_server_side_logging()
logger = logging.getLogger("linkaheadadvancedtools") logger = logging.getLogger("caosadvancedtools")
db.configure_connection(auth_token=args.auth_token) db.configure_connection(auth_token=args.auth_token)
entity_id = args.filename entity_id = args.filename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment