q2rad 0.1.167__tar.gz → 0.1.168__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.167 → q2rad-0.1.168}/PKG-INFO +1 -1
- {q2rad-0.1.167 → q2rad-0.1.168}/pyproject.toml +1 -1
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2appselector.py +4 -4
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2make.py +1 -1
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2rad.py +58 -30
- q2rad-0.1.168/q2rad/version.py +1 -0
- q2rad-0.1.167/q2rad/version.py +0 -1
- {q2rad-0.1.167 → q2rad-0.1.168}/LICENSE +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/README.md +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/__init__.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/__main__.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2actions.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2appmanager.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2constants.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2forms.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2lines.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2market.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2modules.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2packages.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2queries.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2raddb.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2reports.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2stylesettings.py +0 -0
- {q2rad-0.1.167 → q2rad-0.1.168}/q2rad/q2utils.py +0 -0
|
@@ -228,17 +228,17 @@ class Q2AppSelect(Q2Form):
|
|
|
228
228
|
if self.q2_app.keyboard_modifiers() != "":
|
|
229
229
|
return
|
|
230
230
|
if self.db.table("applications").row_count() <= 0:
|
|
231
|
-
if not os.path.isdir("
|
|
232
|
-
os.mkdir("
|
|
231
|
+
if not os.path.isdir("databases"):
|
|
232
|
+
os.mkdir("databases")
|
|
233
233
|
insert(
|
|
234
234
|
"applications",
|
|
235
235
|
{
|
|
236
236
|
"ordnum": 1,
|
|
237
237
|
"name": "My first app",
|
|
238
238
|
"driver_data": "Sqlite",
|
|
239
|
-
"database_data": "
|
|
239
|
+
"database_data": "databases/my_first_app_data_storage.sqlite",
|
|
240
240
|
"driver_logic": "Sqlite",
|
|
241
|
-
"database_logic": "
|
|
241
|
+
"database_logic": "databases/my_first_app_logic_storage.sqlite",
|
|
242
242
|
"dev_mode": "*",
|
|
243
243
|
},
|
|
244
244
|
self.db,
|
|
@@ -25,7 +25,7 @@ from q2rad.q2appmanager import AppManager
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
def create_q2apps_sqlite(dist_folder):
|
|
28
|
-
database_folder_name = "
|
|
28
|
+
database_folder_name = "databases"
|
|
29
29
|
database_name_prefix = "app1"
|
|
30
30
|
appsel = Q2AppSelect(f"{dist_folder}/q2apps.sqlite")
|
|
31
31
|
appsel.db.insert(
|
|
@@ -613,18 +613,17 @@ class Q2RadApp(Q2App):
|
|
|
613
613
|
|
|
614
614
|
if not self.frozen:
|
|
615
615
|
# create update_q2rad.sh
|
|
616
|
-
self.
|
|
617
|
-
"update_q2rad",
|
|
618
|
-
("" if "win32" in sys.platform else "#!/bin/bash\n")
|
|
619
|
-
+ ("q2rad\\scripts\\activate " if "win32" in sys.platform else "source q2rad/bin/activate")
|
|
620
|
-
+ "&& pip install --upgrade --force-reinstall q2gui"
|
|
621
|
-
+ "&& pip install --upgrade --force-reinstall q2db"
|
|
622
|
-
+ "&& pip install --upgrade --force-reinstall q2report"
|
|
623
|
-
+ "&& pip install --upgrade --force-reinstall q2terminal"
|
|
624
|
-
+ "&& pip install --upgrade --force-reinstall q2rad",
|
|
625
|
-
)
|
|
616
|
+
self.write_reinstall_files()
|
|
626
617
|
|
|
627
618
|
# create run_q2rad
|
|
619
|
+
self.write_run_files()
|
|
620
|
+
if sys.platform != "darwin":
|
|
621
|
+
if q2AskYN("Should I make a desktop shortcut?") == 2:
|
|
622
|
+
self.make_desktop_shortcut()
|
|
623
|
+
self.process_events()
|
|
624
|
+
|
|
625
|
+
def write_run_files(self):
|
|
626
|
+
if sys.prefix != sys.base_prefix: # in virtualenv
|
|
628
627
|
self.write_restore_file(
|
|
629
628
|
"run_q2rad",
|
|
630
629
|
("" if "win32" in sys.platform else "#!/bin/bash\n")
|
|
@@ -634,27 +633,56 @@ class Q2RadApp(Q2App):
|
|
|
634
633
|
else "q2rad/bin/q2rad\n"
|
|
635
634
|
),
|
|
636
635
|
)
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
)
|
|
636
|
+
elif os.path.isdir("python.loc"):
|
|
637
|
+
self.write_restore_file(
|
|
638
|
+
"run_q2rad",
|
|
639
|
+
("" if "win32" in sys.platform else "#!/bin/bash\n")
|
|
640
|
+
+ ("python.loc\\scripts\\q2rad" if "win32" in sys.platform else "python.loc/bin/q2rad\n"),
|
|
641
|
+
)
|
|
642
|
+
else:
|
|
643
|
+
self.write_restore_file(
|
|
644
|
+
"run_q2rad",
|
|
645
|
+
("" if "win32" in sys.platform else "#!/bin/bash\n")
|
|
646
|
+
+ ("pythonw.exe -m q2rad" if "win32" in sys.platform else "python -m q2rad\n"),
|
|
647
|
+
)
|
|
642
648
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
)
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
649
|
+
if "win32" in sys.platform:
|
|
650
|
+
open("run_q2rad.vbs", "w").write(
|
|
651
|
+
'WScript.CreateObject("WScript.Shell").Run '
|
|
652
|
+
'"q2rad\\scripts\\pythonw.exe -m q2rad", 0, false'
|
|
653
|
+
)
|
|
654
|
+
|
|
655
|
+
open("make_shortcut.vbs", "w").write(
|
|
656
|
+
'Set oWS = WScript.CreateObject("WScript.Shell")\n'
|
|
657
|
+
'Set oLink = oWS.CreateShortcut(oWS.SpecialFolders("Desktop") & "\\q2RAD.lnk")\n'
|
|
658
|
+
'cu = WScript.CreateObject("Scripting.FileSystemObject").'
|
|
659
|
+
"GetParentFolderName(WScript.ScriptFullName)\n"
|
|
660
|
+
'oLink.TargetPath = cu & "\\run_q2rad.vbs"\n'
|
|
661
|
+
'oLink.WorkingDirectory = cu & ""\n'
|
|
662
|
+
'oLink.Description = "q2RAD"\n'
|
|
663
|
+
'oLink.IconLocation = cu & "\\assets\\q2rad.ico"\n'
|
|
664
|
+
"oLink.Save\n"
|
|
665
|
+
)
|
|
666
|
+
|
|
667
|
+
def write_reinstall_files(self):
|
|
668
|
+
if sys.prefix != sys.base_prefix: # in virtualenv
|
|
669
|
+
pip_command = (
|
|
670
|
+
"q2rad\\scripts\\python -m " if "win32" in sys.platform else "q2rad/script/python -m "
|
|
671
|
+
)
|
|
672
|
+
elif os.path.isdir("python.loc"):
|
|
673
|
+
pip_command = "python.loc\\python -m " if "win32" in sys.platform else "python.loc/python -m "
|
|
674
|
+
else:
|
|
675
|
+
pip_command = "python -m " if "win32" in sys.platform else "python -m "
|
|
676
|
+
|
|
677
|
+
self.write_restore_file(
|
|
678
|
+
"update_q2rad",
|
|
679
|
+
("" if "win32" in sys.platform else "#!/bin/bash\n")
|
|
680
|
+
+ f"{pip_command} pip install --upgrade --force-reinstall q2gui"
|
|
681
|
+
+ f"&&{pip_command} pip install --upgrade --force-reinstall q2db"
|
|
682
|
+
+ f"&&{pip_command} pip install --upgrade --force-reinstall q2report"
|
|
683
|
+
+ f"&&{pip_command} pip install --upgrade --force-reinstall q2terminal"
|
|
684
|
+
+ f"&&{pip_command} pip install --upgrade --force-reinstall q2rad",
|
|
685
|
+
)
|
|
658
686
|
|
|
659
687
|
def get_package_versions(self, package):
|
|
660
688
|
response = open_url(f"https://pypi.python.org/pypi/{package}/json") # noqa F405
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.168"
|
q2rad-0.1.167/q2rad/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.167"
|
|
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
|