q2rad 0.1.214__tar.gz → 0.1.216__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of q2rad might be problematic. Click here for more details.
- {q2rad-0.1.214 → q2rad-0.1.216}/PKG-INFO +1 -1
- {q2rad-0.1.214 → q2rad-0.1.216}/pyproject.toml +1 -1
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2extensions.py +2 -1
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2rad.py +7 -4
- q2rad-0.1.216/q2rad/version.py +1 -0
- q2rad-0.1.214/q2rad/version.py +0 -1
- {q2rad-0.1.214 → q2rad-0.1.216}/LICENSE +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/README.md +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/__init__.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/__main__.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2actions.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2appmanager.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2appselector.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2constants.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2forms.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2lines.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2make.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2market.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2modules.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2packages.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2queries.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2raddb.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2reports.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2stylesettings.py +0 -0
- {q2rad-0.1.214 → q2rad-0.1.216}/q2rad/q2utils.py +0 -0
|
@@ -49,7 +49,8 @@ class Q2Extensions(Q2Form):
|
|
|
49
49
|
self.set_model(model)
|
|
50
50
|
self.add_action("/crud")
|
|
51
51
|
self.add_action("Export|as JSON file", self.export_json, eof_disabled=True)
|
|
52
|
-
|
|
52
|
+
if os.path.isdir(self.q2_app.q2market_path):
|
|
53
|
+
self.add_action("Export|to q2Market", self.export_q2market, eof_disabled=True)
|
|
53
54
|
self.add_action("Import|from JSON file", self.import_json, eof_disabled=True)
|
|
54
55
|
self.add_action("Import|from q2Market", self.import_q2market, eof_disabled=True)
|
|
55
56
|
|
|
@@ -762,7 +762,7 @@ class Q2RadApp(Q2App):
|
|
|
762
762
|
upgraded = []
|
|
763
763
|
w = Q2WaitShow(len(packages_list))
|
|
764
764
|
for package in packages_list:
|
|
765
|
-
if w.step(package):
|
|
765
|
+
if w.step(f"{package if isinstance(package, str) else package[0]}"):
|
|
766
766
|
break
|
|
767
767
|
latest_version, current_version = self.get_package_versions(package)
|
|
768
768
|
# q2mess([package, latest_version, current_version])
|
|
@@ -860,6 +860,9 @@ class Q2RadApp(Q2App):
|
|
|
860
860
|
if self.frozen:
|
|
861
861
|
return
|
|
862
862
|
|
|
863
|
+
if isinstance(package, tuple) or isinstance(package, list):
|
|
864
|
+
package = package[1] if package[1] else package[0]
|
|
865
|
+
|
|
863
866
|
def pip_runner():
|
|
864
867
|
trm = Q2Terminal(callback=print)
|
|
865
868
|
trm.run(
|
|
@@ -919,7 +922,7 @@ class Q2RadApp(Q2App):
|
|
|
919
922
|
if prefix:
|
|
920
923
|
cu = q2cursor(f"select * from extensions where prefix='{prefix}'")
|
|
921
924
|
else:
|
|
922
|
-
cu = q2cursor(f"select * from extensions order by seq")
|
|
925
|
+
cu = q2cursor(f"select * from extensions where checkupdates<>'' order by seq")
|
|
923
926
|
for row in cu.records():
|
|
924
927
|
_prefix = row["prefix"]
|
|
925
928
|
ext_url = f"{os.path.dirname(self.app_url)}/{_prefix}"
|
|
@@ -1276,8 +1279,8 @@ class Q2RadApp(Q2App):
|
|
|
1276
1279
|
# import
|
|
1277
1280
|
if re.findall(r"^\s*import\W*.*", x):
|
|
1278
1281
|
module = x.split("import")[1].strip()
|
|
1279
|
-
|
|
1280
|
-
|
|
1282
|
+
if self.db_logic.get("modules", f"name='{module}'", "name"):
|
|
1283
|
+
x = x.split("import")[0] + f"run_module('{module}', import_only=True)"
|
|
1281
1284
|
|
|
1282
1285
|
new_script_lines.append(x)
|
|
1283
1286
|
script = "\n".join(new_script_lines)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.216"
|
q2rad-0.1.214/q2rad/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.214"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|