q2rad 0.1.239__tar.gz → 0.1.241__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.239 → q2rad-0.1.241}/PKG-INFO +1 -1
- {q2rad-0.1.239 → q2rad-0.1.241}/pyproject.toml +1 -1
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2appmanager.py +2 -2
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2queries.py +4 -14
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2rad.py +7 -4
- q2rad-0.1.241/q2rad/version.py +1 -0
- q2rad-0.1.239/q2rad/version.py +0 -1
- {q2rad-0.1.239 → q2rad-0.1.241}/LICENSE +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/README.md +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/__init__.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/__main__.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2actions.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2appselector.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2constants.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2extensions.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2forms.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2lines.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2make.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2market.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2modules.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2packages.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2raddb.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2reports.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2stylesettings.py +0 -0
- {q2rad-0.1.239 → q2rad-0.1.241}/q2rad/q2utils.py +0 -0
|
@@ -165,7 +165,7 @@ class AppManager(Q2Form):
|
|
|
165
165
|
control="button",
|
|
166
166
|
# datalen=14,
|
|
167
167
|
valid=self.export_q2market,
|
|
168
|
-
style="background:LightCoral",
|
|
168
|
+
style="background:LightCoral; ; font-weight:bold",
|
|
169
169
|
)
|
|
170
170
|
self.add_control("/")
|
|
171
171
|
|
|
@@ -187,7 +187,7 @@ class AppManager(Q2Form):
|
|
|
187
187
|
control="button",
|
|
188
188
|
# datalen=10,
|
|
189
189
|
valid=self.import_app_all,
|
|
190
|
-
style="background:
|
|
190
|
+
style="background:#FF6666; font-weight:bold",
|
|
191
191
|
)
|
|
192
192
|
if self.q2_app.app_url:
|
|
193
193
|
self.add_control(
|
|
@@ -194,20 +194,6 @@ class Q2QueryEdit(Q2Form):
|
|
|
194
194
|
control="button",
|
|
195
195
|
)
|
|
196
196
|
self.add_control("/s")
|
|
197
|
-
self.add_control(
|
|
198
|
-
"show_json",
|
|
199
|
-
"Show as JSON",
|
|
200
|
-
valid=self.query_list.show_dataset_json,
|
|
201
|
-
control="button",
|
|
202
|
-
)
|
|
203
|
-
self.add_control("/s")
|
|
204
|
-
self.add_control(
|
|
205
|
-
"save_json",
|
|
206
|
-
"Save as JSON",
|
|
207
|
-
valid=self.query_list.save_dataset_json,
|
|
208
|
-
control="button",
|
|
209
|
-
)
|
|
210
|
-
self.add_control("/s")
|
|
211
197
|
self.add_control("/")
|
|
212
198
|
self.add_control("pl", "", widget=self.param_list, nogrid=1, migrate=0)
|
|
213
199
|
self.add_control("/")
|
|
@@ -263,6 +249,10 @@ class Q2QueryList(Q2Form):
|
|
|
263
249
|
self.add_control("/")
|
|
264
250
|
self.set_model(Q2Model())
|
|
265
251
|
self.add_action("/crud")
|
|
252
|
+
self.add_action("-")
|
|
253
|
+
self.add_action("Dataset|Show as JSON", self.show_dataset_json)
|
|
254
|
+
self.add_action("Dataset|Save as JSON", self.save_dataset_json)
|
|
255
|
+
|
|
266
256
|
self.model.readonly = False
|
|
267
257
|
self.last_current_row = -1
|
|
268
258
|
|
|
@@ -620,20 +620,24 @@ class Q2RadApp(Q2App):
|
|
|
620
620
|
q2Mess("<br>".join(about))
|
|
621
621
|
|
|
622
622
|
def asset_file_loader(self, name):
|
|
623
|
-
|
|
623
|
+
if name.endswith(".svg"):
|
|
624
|
+
asset_url = f"https://unpkg.com/lucide-static@latest/icons/{name}"
|
|
625
|
+
else:
|
|
626
|
+
asset_url = f"{self.assets_url}/{name}"
|
|
624
627
|
try:
|
|
625
628
|
asset_content = read_url(asset_url) # noqa F405
|
|
626
629
|
if not asset_content:
|
|
630
|
+
_logger.info(f"Asset not found {asset_url}")
|
|
627
631
|
return False
|
|
628
632
|
except Exception:
|
|
629
|
-
|
|
633
|
+
_logger.info(f"Error reading {asset_url}")
|
|
630
634
|
return False
|
|
631
635
|
|
|
632
636
|
try:
|
|
633
637
|
open(f"assets/{name}", "wb").write(asset_content)
|
|
634
638
|
return True
|
|
635
639
|
except Exception:
|
|
636
|
-
|
|
640
|
+
_logger.info(f"Error writing asset/{name}")
|
|
637
641
|
return False
|
|
638
642
|
|
|
639
643
|
def write_restore_file(self, name, content):
|
|
@@ -1222,7 +1226,6 @@ class Q2RadApp(Q2App):
|
|
|
1222
1226
|
make_binary(self)
|
|
1223
1227
|
|
|
1224
1228
|
def run_form(self, name, order="", where=""):
|
|
1225
|
-
# print(">>", len(set(self.QApplication.allWidgets())))
|
|
1226
1229
|
form = self.get_form(name, where=where, order=order)
|
|
1227
1230
|
form.run()
|
|
1228
1231
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.241"
|
q2rad-0.1.239/q2rad/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.239"
|
|
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
|