Update to add SQL Server support.
This commit is contained in:
@@ -230,7 +230,7 @@ class App(QMainWindow):
|
||||
st = SubmissionType.import_from_json(filepath=fname)
|
||||
if st:
|
||||
# NOTE: Do not delete the print statement below.
|
||||
print(pformat(st.to_export_dict()))
|
||||
# print(pformat(st.to_export_dict()))
|
||||
choice = input("Save the above submission type? [y/N]: ")
|
||||
if choice.lower() == "y":
|
||||
pass
|
||||
|
||||
@@ -103,7 +103,8 @@ class ControlsViewer(QWidget):
|
||||
sub_types = self.archetype.get_modes(mode=self.mode)
|
||||
except AttributeError:
|
||||
sub_types = []
|
||||
if sub_types:
|
||||
# NOTE: added in allowed to have subtypes in case additions made in future.
|
||||
if sub_types and self.mode.lower() in self.archetype.get_instance_class().subtyping_allowed:
|
||||
# NOTE: block signal that will rerun controls getter and update mode_sub_typer
|
||||
with QSignalBlocker(self.mode_sub_typer) as blocker:
|
||||
self.mode_sub_typer.addItems(sub_types)
|
||||
|
||||
@@ -167,7 +167,7 @@ class SubmissionDetails(QDialog):
|
||||
Renders submission to html, then creates and saves .pdf file to user selected file.
|
||||
"""
|
||||
fname = select_save_file(obj=self, default_name=self.export_plate, extension="pdf")
|
||||
save_pdf(obj=self, filename=fname)
|
||||
save_pdf(obj=self.webview, filename=fname)
|
||||
|
||||
class SubmissionComment(QDialog):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user