2775 wd = self.__sitePath() |
2775 wd = self.__sitePath() |
2776 except DjangoNoSiteSelectedException: |
2776 except DjangoNoSiteSelectedException: |
2777 return |
2777 return |
2778 |
2778 |
2779 from .DjangoTestDataDialog import DjangoTestDataDialog |
2779 from .DjangoTestDataDialog import DjangoTestDataDialog |
2780 dlg = DjangoTestDataDialog(self, self.__ui) |
2780 dlg = DjangoTestDataDialog( |
|
2781 self, self.__plugin.getPreferences("KeepTestDatabase"), |
|
2782 self.__ui) |
2781 if dlg.exec_() == QDialog.Accepted: |
2783 if dlg.exec_() == QDialog.Accepted: |
2782 labels, pattern, tags, excludeTags, keep, reverse = \ |
2784 labels, pattern, tags, excludeTags, keep, reverse = \ |
2783 dlg.getData() |
2785 dlg.getData() |
|
2786 |
|
2787 self.__plugin.setPreferences("KeepTestDatabase", keep) |
2784 |
2788 |
2785 args = Utilities.parseOptionString(consoleCmd) |
2789 args = Utilities.parseOptionString(consoleCmd) |
2786 args[0] = Utilities.getExecutablePath(args[0]) |
2790 args[0] = Utilities.getExecutablePath(args[0]) |
2787 args.append(self.__getPythonExecutable()) |
2791 args.append(self.__getPythonExecutable()) |
2788 if deprecation: |
2792 if deprecation: |