6 """ |
6 """ |
7 Module implementing a dialog to select an application and migration. |
7 Module implementing a dialog to select an application and migration. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 try: |
|
12 str = unicode # __IGNORE_WARNING__ |
|
13 except NameError: |
|
14 pass |
|
15 |
11 |
16 import os |
12 import os |
17 |
13 |
18 from PyQt5.QtCore import pyqtSlot |
14 from PyQt5.QtCore import pyqtSlot |
19 from PyQt5.QtGui import QIcon |
15 from PyQt5.QtGui import QIcon |
30 """ |
26 """ |
31 def __init__(self, migrations, parent=None): |
27 def __init__(self, migrations, parent=None): |
32 """ |
28 """ |
33 Constructor |
29 Constructor |
34 |
30 |
35 @param pythonExecutable Python executable to be used |
31 @param migrations dictionary containing the available migrations |
36 @type str |
32 @type dict |
37 @param sitePath path of the site |
|
38 @type str |
|
39 @param parent reference to the parent widget |
33 @param parent reference to the parent widget |
40 @type QWidget |
34 @type QWidget |
41 """ |
35 """ |
42 super(DjangoMigrationSelectionDialog, self).__init__(parent) |
36 super(DjangoMigrationSelectionDialog, self).__init__(parent) |
43 self.setupUi(self) |
37 self.setupUi(self) |