ProjectDjango/Documentation/source/Plugin_Project_Django.ProjectDjango.DjangoSquashMigrationSelectionDialog.html

branch
eric7
changeset 198
dd36f90e77ee
parent 176
1395e0583f4e
equal deleted inserted replaced
197:2667e16a3379 198:dd36f90e77ee
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>Plugin_Project_Django.ProjectDjango.DjangoSquashMigrationSelectionDialog</h1> 9 <h1>Plugin_Project_Django.ProjectDjango.DjangoSquashMigrationSelectionDialog</h1>
10
11 <p> 10 <p>
12 Module implementing a dialog to enter data needed to squash migrations. 11 Module implementing a dialog to enter data needed to squash migrations.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20
21 <table> 20 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#DjangoSquashMigrationSelectionDialog">DjangoSquashMigrationSelectionDialog</a></td> 22 <td><a href="#DjangoSquashMigrationSelectionDialog">DjangoSquashMigrationSelectionDialog</a></td>
25 <td>Class implementing a dialog to enter data needed to squash migrations.</td> 23 <td>Class implementing a dialog to enter data needed to squash migrations.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29
30 <table> 28 <table>
31 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
32 </table> 30 </table>
31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="DjangoSquashMigrationSelectionDialog" ID="DjangoSquashMigrationSelectionDialog"></a> 34 <a NAME="DjangoSquashMigrationSelectionDialog" ID="DjangoSquashMigrationSelectionDialog"></a>
36 <h2>DjangoSquashMigrationSelectionDialog</h2> 35 <h2>DjangoSquashMigrationSelectionDialog</h2>
37
38 <p> 36 <p>
39 Class implementing a dialog to enter data needed to squash migrations. 37 Class implementing a dialog to enter data needed to squash migrations.
40 </p> 38 </p>
39
41 <h3>Derived from</h3> 40 <h3>Derived from</h3>
42 QDialog, Ui_DjangoSquashMigrationSelectionDialog 41 QDialog, Ui_DjangoSquashMigrationSelectionDialog
43 <h3>Class Attributes</h3> 42 <h3>Class Attributes</h3>
44
45 <table> 43 <table>
46 <tr><td>None</td></tr> 44 <tr><td>None</td></tr>
47 </table> 45 </table>
46
48 <h3>Class Methods</h3> 47 <h3>Class Methods</h3>
49
50 <table> 48 <table>
51 <tr><td>None</td></tr> 49 <tr><td>None</td></tr>
52 </table> 50 </table>
51
53 <h3>Methods</h3> 52 <h3>Methods</h3>
54
55 <table> 53 <table>
56
57 <tr> 54 <tr>
58 <td><a href="#DjangoSquashMigrationSelectionDialog.__init__">DjangoSquashMigrationSelectionDialog</a></td> 55 <td><a href="#DjangoSquashMigrationSelectionDialog.__init__">DjangoSquashMigrationSelectionDialog</a></td>
59 <td>Constructor</td> 56 <td>Constructor</td>
60 </tr> 57 </tr>
61 <tr> 58 <tr>
65 <tr> 62 <tr>
66 <td><a href="#DjangoSquashMigrationSelectionDialog.getData">getData</a></td> 63 <td><a href="#DjangoSquashMigrationSelectionDialog.getData">getData</a></td>
67 <td>Public method to retrieve the data entered by the user.</td> 64 <td>Public method to retrieve the data entered by the user.</td>
68 </tr> 65 </tr>
69 <tr> 66 <tr>
70 <td><a href="#DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated">on_applicationComboBox_activated</a></td> 67 <td><a href="#DjangoSquashMigrationSelectionDialog.on_applicationComboBox_currentTextChanged">on_applicationComboBox_currentTextChanged</a></td>
71 <td>Private slot to update the migrations combo boxes.</td> 68 <td>Private slot to update the migrations combo boxes.</td>
72 </tr> 69 </tr>
73 <tr> 70 <tr>
74 <td><a href="#DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated">on_endMigrationComboBox_activated</a></td> 71 <td><a href="#DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_currentTextChanged">on_endMigrationComboBox_currentTextChanged</a></td>
75 <td>Private slot handling the selection of a migration.</td> 72 <td>Private slot handling the selection of a migration.</td>
76 </tr> 73 </tr>
77 </table> 74 </table>
75
78 <h3>Static Methods</h3> 76 <h3>Static Methods</h3>
79
80 <table> 77 <table>
81 <tr><td>None</td></tr> 78 <tr><td>None</td></tr>
82 </table> 79 </table>
83 80
81
84 <a NAME="DjangoSquashMigrationSelectionDialog.__init__" ID="DjangoSquashMigrationSelectionDialog.__init__"></a> 82 <a NAME="DjangoSquashMigrationSelectionDialog.__init__" ID="DjangoSquashMigrationSelectionDialog.__init__"></a>
85 <h4>DjangoSquashMigrationSelectionDialog (Constructor)</h4> 83 <h4>DjangoSquashMigrationSelectionDialog (Constructor)</h4>
86 <b>DjangoSquashMigrationSelectionDialog</b>(<i>migrations, django, suffix, parent=None</i>) 84 <b>DjangoSquashMigrationSelectionDialog</b>(<i>migrations, django, suffix, parent=None</i>)
87
88 <p> 85 <p>
89 Constructor 86 Constructor
90 </p> 87 </p>
88
91 <dl> 89 <dl>
92 90
93 <dt><i>migrations</i> (dict)</dt> 91 <dt><i>migrations</i> (dict)</dt>
94 <dd> 92 <dd>
95 dictionary containing the available migrations 93 dictionary containing the available migrations
108 </dd> 106 </dd>
109 </dl> 107 </dl>
110 <a NAME="DjangoSquashMigrationSelectionDialog.__updateOkButton" ID="DjangoSquashMigrationSelectionDialog.__updateOkButton"></a> 108 <a NAME="DjangoSquashMigrationSelectionDialog.__updateOkButton" ID="DjangoSquashMigrationSelectionDialog.__updateOkButton"></a>
111 <h4>DjangoSquashMigrationSelectionDialog.__updateOkButton</h4> 109 <h4>DjangoSquashMigrationSelectionDialog.__updateOkButton</h4>
112 <b>__updateOkButton</b>(<i></i>) 110 <b>__updateOkButton</b>(<i></i>)
113
114 <p> 111 <p>
115 Private slot to set the enabled state of the OK button. 112 Private slot to set the enabled state of the OK button.
116 </p> 113 </p>
114
117 <a NAME="DjangoSquashMigrationSelectionDialog.getData" ID="DjangoSquashMigrationSelectionDialog.getData"></a> 115 <a NAME="DjangoSquashMigrationSelectionDialog.getData" ID="DjangoSquashMigrationSelectionDialog.getData"></a>
118 <h4>DjangoSquashMigrationSelectionDialog.getData</h4> 116 <h4>DjangoSquashMigrationSelectionDialog.getData</h4>
119 <b>getData</b>(<i></i>) 117 <b>getData</b>(<i></i>)
120
121 <p> 118 <p>
122 Public method to retrieve the data entered by the user. 119 Public method to retrieve the data entered by the user.
123 </p> 120 </p>
121
124 <dl> 122 <dl>
125 <dt>Return:</dt> 123 <dt>Return:</dt>
126 <dd> 124 <dd>
127 tuple containing the selected app, the start migration, 125 tuple containing the selected app, the start migration,
128 the end migration and a flag indicating no optimization is wanted 126 the end migration and a flag indicating no optimization is wanted
132 <dt>Return Type:</dt> 130 <dt>Return Type:</dt>
133 <dd> 131 <dd>
134 tuple of three str and a bool 132 tuple of three str and a bool
135 </dd> 133 </dd>
136 </dl> 134 </dl>
137 <a NAME="DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated" ID="DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated"></a> 135 <a NAME="DjangoSquashMigrationSelectionDialog.on_applicationComboBox_currentTextChanged" ID="DjangoSquashMigrationSelectionDialog.on_applicationComboBox_currentTextChanged"></a>
138 <h4>DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated</h4> 136 <h4>DjangoSquashMigrationSelectionDialog.on_applicationComboBox_currentTextChanged</h4>
139 <b>on_applicationComboBox_activated</b>(<i>app</i>) 137 <b>on_applicationComboBox_currentTextChanged</b>(<i>app</i>)
140
141 <p> 138 <p>
142 Private slot to update the migrations combo boxes. 139 Private slot to update the migrations combo boxes.
143 </p> 140 </p>
141
144 <dl> 142 <dl>
145 143
146 <dt><i>app</i> (str)</dt> 144 <dt><i>app</i> (str)</dt>
147 <dd> 145 <dd>
148 name of the selected application 146 name of the selected application
149 </dd> 147 </dd>
150 </dl> 148 </dl>
151 <a NAME="DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated" ID="DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated"></a> 149 <a NAME="DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_currentTextChanged" ID="DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_currentTextChanged"></a>
152 <h4>DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated</h4> 150 <h4>DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_currentTextChanged</h4>
153 <b>on_endMigrationComboBox_activated</b>(<i>migration</i>) 151 <b>on_endMigrationComboBox_currentTextChanged</b>(<i>migration</i>)
154
155 <p> 152 <p>
156 Private slot handling the selection of a migration. 153 Private slot handling the selection of a migration.
157 </p> 154 </p>
155
158 <dl> 156 <dl>
159 157
160 <dt><i>migration</i> (str)</dt> 158 <dt><i>migration</i> (str)</dt>
161 <dd> 159 <dd>
162 name of the selected migration 160 name of the selected migration

eric ide

mercurial