From 55905fc58bbb3b8f12f81a5b0fc2cfb0165c8f94 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 16 Jul 2025 22:49:12 -0500 Subject: [PATCH] bug fix --- cms/disk.py | 2 +- meta/__init__.py | 2 +- pyproject.toml | 4 ++-- readme.md | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cms/disk.py b/cms/disk.py index b4531c8..74b1a0a 100644 --- a/cms/disk.py +++ b/cms/disk.py @@ -129,7 +129,7 @@ def html(_uri,_config) : _api = os.sep.join([f'{_context}/api/disk/read?uri=',copy.copy(_layout['root'])]) - if f"{_layout['root']}{os.sep}" in _html : + if f"{_layout['root']}" in _html : _html = _html.replace('/api/disk/read?uri=','').replace(f"{_layout['root']}",_api) _html = mistune.html(_html).replace(""",'"').replace("<","<").replace(">",">") if _uri[-2:] in ['md','MD','Md','mD'] else _html # _html = _html.replace(f'{os.sep}{_layout["root"]}',_layout['root']) diff --git a/meta/__init__.py b/meta/__init__.py index 661e992..83083b8 100644 --- a/meta/__init__.py +++ b/meta/__init__.py @@ -1,5 +1,5 @@ __author__ = "Steve L. Nyemba" -__version__= "2.2.20" +__version__= "2.2.22" __email__ = "steve@the-phi.com" __license__=""" Copyright 2010 - 2024, Steve L. Nyemba, Vanderbilt University Medical Center diff --git a/pyproject.toml b/pyproject.toml index 39291f3..6e9b19c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,10 +22,10 @@ dependencies = [ "termcolor", "flask-session", "mistune", - "typer","smart-open", "pyncclient", - "data-transport @ git+https://github.com/lnyemba/data-transport#egg=data-transport" + "typer","smart-open", "pyncclient" ] [project.optional-dependencies] +sql = ["data-transport @ git+https://github.com/lnyemba/data-transport#egg=data-transport"] nosql = ["data-transport[nosql] @ git+https://github.com/lnyemba/data-transport#egg=data-transport"] cloud = ["data-transport[cloud] @ git+https://github.com/lnyemba/data-transport#egg=data-transport"] warehouse = ["data-transport[warehouse] @ git+https://github.com/lnyemba/data-transport#egg=data-transport"] diff --git a/readme.md b/readme.md index 9683f83..6a4a2fe 100644 --- a/readme.md +++ b/readme.md @@ -20,6 +20,10 @@ QCMS comes with standard web frameworks and python frameworks out of the box pip install qcms@git+https://dev.the-phi.com/git/qcms/cms +Additional **data-transport** libraries to install + + pip install qcms[sql,nosql,cloud,warehouse] @ git+https://dev.the-phi.com/qcms/cms + **2. Create your project** qcms create --title "my demo project" --subtitle "I love qcms" --port 8090 ./qcms-demo