q2rad 0.1.214__tar.gz → 0.1.215__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.215
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.215"
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
 
@@ -919,7 +919,7 @@ class Q2RadApp(Q2App):
919
919
  if prefix:
920
920
  cu = q2cursor(f"select * from extensions where prefix='{prefix}'")
921
921
  else:
922
- cu = q2cursor(f"select * from extensions order by seq")
922
+ cu = q2cursor(f"select * from extensions where checkupdates<>'' order by seq")
923
923
  for row in cu.records():
924
924
  _prefix = row["prefix"]
925
925
  ext_url = f"{os.path.dirname(self.app_url)}/{_prefix}"
@@ -1276,8 +1276,8 @@ class Q2RadApp(Q2App):
1276
1276
  # import
1277
1277
  if re.findall(r"^\s*import\W*.*", x):
1278
1278
  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)"
1279
+ if self.db_logic.get("modules", f"name='{module}'", "name"):
1280
+ x = x.split("import")[0] + f"run_module('{module}', import_only=True)"
1281
1281
 
1282
1282
  new_script_lines.append(x)
1283
1283
  script = "\n".join(new_script_lines)
@@ -0,0 +1 @@
1
+ __version__ = "0.1.215"
@@ -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