ProjectDjango/Documentation/source/Plugin_Project_Django.ProjectDjango.DjangoMigrationSelectionDialog.html

Sun, 30 Mar 2025 15:25:10 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 Mar 2025 15:25:10 +0200
branch
eric7
changeset 206
4dfd8f6f2503
parent 198
dd36f90e77ee
permissions
-rw-r--r--

Created global tag <release-10.4.0>.

<!DOCTYPE html>
<html><head>
<title>Plugin_Project_Django.ProjectDjango.DjangoMigrationSelectionDialog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>Plugin_Project_Django.ProjectDjango.DjangoMigrationSelectionDialog</h1>
<p>
Module implementing a dialog to select an application and migration.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#DjangoMigrationSelectionDialog">DjangoMigrationSelectionDialog</a></td>
<td>Class implementing a dialog to select an application and migration.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="DjangoMigrationSelectionDialog" ID="DjangoMigrationSelectionDialog"></a>
<h2>DjangoMigrationSelectionDialog</h2>
<p>
    Class implementing a dialog to select an application and migration.
</p>

<h3>Derived from</h3>
QDialog, Ui_DjangoMigrationSelectionDialog
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#DjangoMigrationSelectionDialog.__init__">DjangoMigrationSelectionDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#DjangoMigrationSelectionDialog.getData">getData</a></td>
<td>Public method to get the selected data.</td>
</tr>
<tr>
<td><a href="#DjangoMigrationSelectionDialog.on_applicationComboBox_currentTextChanged">on_applicationComboBox_currentTextChanged</a></td>
<td>Private slot to update the migrations combo box.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="DjangoMigrationSelectionDialog.__init__" ID="DjangoMigrationSelectionDialog.__init__"></a>
<h4>DjangoMigrationSelectionDialog (Constructor)</h4>
<b>DjangoMigrationSelectionDialog</b>(<i>migrations, migrationRequired=False, suffix="", parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>migrations</i> (dict)</dt>
<dd>
dictionary containing the available migrations
</dd>
<dt><i>migrationRequired</i> (bool)</dt>
<dd>
flag indicating that a migration must be
            selected
</dd>
<dt><i>suffix</i> (str)</dt>
<dd>
icon suffix
</dd>
<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="DjangoMigrationSelectionDialog.getData" ID="DjangoMigrationSelectionDialog.getData"></a>
<h4>DjangoMigrationSelectionDialog.getData</h4>
<b>getData</b>(<i></i>)
<p>
        Public method to get the selected data.
</p>

<dl>
<dt>Return:</dt>
<dd>
tuple containing the selected application name and migration
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
tuple of two str
</dd>
</dl>
<a NAME="DjangoMigrationSelectionDialog.on_applicationComboBox_currentTextChanged" ID="DjangoMigrationSelectionDialog.on_applicationComboBox_currentTextChanged"></a>
<h4>DjangoMigrationSelectionDialog.on_applicationComboBox_currentTextChanged</h4>
<b>on_applicationComboBox_currentTextChanged</b>(<i>app</i>)
<p>
        Private slot to update the migrations combo box.
</p>

<dl>

<dt><i>app</i> (str)</dt>
<dd>
name of the selected application
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial