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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.214
3
+ Version: 0.1.216
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "q2rad"
3
- version = "0.1.214"
3
+ version = "0.1.216"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -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
- self.add_action("Export|to q2Market", self.export_q2market, eof_disabled=True)
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
- # if self.db_logic.get("modules", f"name='{module}'", "name"):
1280
- x = x.split("import")[0] + f"run_module('{module}', import_only=True)"
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"
@@ -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