q2rad 0.1.222__tar.gz → 0.1.223__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.222
3
+ Version: 0.1.223
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.222"
3
+ version = "0.1.223"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -139,6 +139,7 @@ class Q2Actions(Q2Form, Q2_save_and_run):
139
139
  self.add_control("/t", _("Comment"))
140
140
  self.add_control("comment", gridlabel=_("Comments"), datatype="longtext", control="longtext")
141
141
  self.add_control("/")
142
+ self.add_control("q2_time", "Time", datatype="int", noform=1, alignment=7)
142
143
  self._add_save_and_run()
143
144
  self._add_save_and_run_visible()
144
145
 
@@ -250,6 +250,7 @@ class Q2Forms(Q2Form, Q2_save_and_run):
250
250
  control="code",
251
251
  )
252
252
  self.add_control("/")
253
+ self.add_control("q2_time", "Time", datatype="int", noform=1, alignment=7)
253
254
  self._add_save_and_run()
254
255
  self._add_save_and_run_visible()
255
256
 
@@ -286,6 +286,7 @@ class Q2Lines(Q2Form, Q2_save_and_run):
286
286
  datatype="longtext",
287
287
  )
288
288
  self.add_control("/")
289
+ self.add_control("q2_time", "Time", datatype="int", noform=1, alignment=7)
289
290
  self._add_save_and_run()
290
291
  self._add_save_and_run_visible()
291
292
 
@@ -56,7 +56,8 @@ class Q2Modules(Q2Form, Q2_save_and_run):
56
56
  self.add_control("/t", "Comment")
57
57
  self.add_control("comment", _("Comment"), control="text", dattype="text")
58
58
 
59
- self.add_control("last_line", "Last line", datatype="int", noform=1, migrate=1)
59
+ self.add_control("last_line", "Last line", datatype="int", noform=1, migrate=1, nogrid=1)
60
+ self.add_control("q2_time", "Time", datatype="int", noform=1, alignment=7)
60
61
  self.add_control("/")
61
62
 
62
63
  cursor: Q2Cursor = self.q2_app.db_logic.table(table_name="modules", order="name")
@@ -63,6 +63,7 @@ class Q2Queries(Q2Form, Q2_save_and_run):
63
63
  # readonly=1,
64
64
  )
65
65
  self.add_control("comment", _("Comment"), datatype="longtext", noform=1)
66
+ self.add_control("q2_time", "Time", datatype="int", noform=1, alignment=7)
66
67
  self._add_save_and_run(save_only=True)
67
68
  self._add_save_and_run_visible(save_only=True)
68
69
 
@@ -425,6 +425,16 @@ class Q2RadApp(Q2App):
425
425
  data_schema.add(**x)
426
426
  db_logic.set_schema(data_schema)
427
427
 
428
+ data_schema = Q2DbSchema()
429
+ for form in (
430
+ Q2Constants(),
431
+ Q2Extensions(),
432
+ ):
433
+ for x in form.get_table_schema():
434
+ data_schema.add(**x)
435
+
436
+ self.db_data.set_schema(data_schema)
437
+
428
438
  def get_autocompletition_list(self):
429
439
  rez = []
430
440
  tables = self.db_data.db_schema.get_schema_tables()
@@ -558,7 +568,7 @@ class Q2RadApp(Q2App):
558
568
  if self.dev_mode:
559
569
  self.add_menu("Dev|Forms", self.run_forms)
560
570
  self.add_menu("Dev|Modules", self.run_modules)
561
- self.add_menu("Dev|Queres", self.run_queries)
571
+ self.add_menu("Dev|Queries", self.run_queries)
562
572
  self.add_menu("Dev|Reports", self.run_reports)
563
573
  self.add_menu("Dev|Packages", self.run_packages)
564
574
  self.add_menu("Dev|-")
@@ -1183,6 +1193,12 @@ class Q2RadApp(Q2App):
1183
1193
  control="button",
1184
1194
  valid=lambda: Q2Finder(finder.s.find_string).show_other("queries"),
1185
1195
  )
1196
+ finder.add_control(
1197
+ "button",
1198
+ "Reports",
1199
+ control="button",
1200
+ valid=lambda: Q2Finder(finder.s.find_string).show_other("reports"),
1201
+ )
1186
1202
  finder.cancel_button = 1
1187
1203
  finder.run()
1188
1204
 
@@ -241,6 +241,7 @@ class Q2Reports(Q2Form, Q2_save_and_run):
241
241
  noform=1,
242
242
  )
243
243
  self.add_control("comment", _("Comment"), datatype="text", noform=1)
244
+ self.add_control("q2_time", "Time", datatype="int", noform=1, alignment=7)
244
245
  self._add_save_and_run(save_only=True)
245
246
  self._add_save_and_run_visible(save_only=True)
246
247
 
@@ -0,0 +1 @@
1
+ __version__ = "0.1.223"
@@ -1 +0,0 @@
1
- __version__ = "0.1.222"
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