ProjectDjango/DjangoTestDataDialog.py

changeset 119
5c6209f8abf0
parent 113
9b7adb12b409
child 121
2346aa3fffcc
diff -r 794125bde05d -r 5c6209f8abf0 ProjectDjango/DjangoTestDataDialog.py
--- a/ProjectDjango/DjangoTestDataDialog.py	Sat Dec 09 14:59:39 2017 +0100
+++ b/ProjectDjango/DjangoTestDataDialog.py	Wed Dec 20 14:22:33 2017 +0100
@@ -16,12 +16,15 @@
     """
     Class implementing a dialog to enter some data for running tests.
     """
-    def __init__(self, project, parent=None):
+    def __init__(self, project, keepDatabases, parent=None):
         """
         Constructor
         
         @param project reference to the Django project object
         @type Project
+        @param keepDatabases flag indicating to set the keep databases
+            check box
+        @type bool
         @param parent reference to the parent widget
         @type QWidget
         """
@@ -41,6 +44,8 @@
             self.tagsComboBox.setEnabled(False)
             self.excludeTagsComboBox.setEnabled(False)
         
+        self.keepCheckBox.setChecked(keepDatabases)
+        
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
     

eric ide

mercurial