ProjectDjango/Documentation/source/Plugin_Project_Django.ProjectDjango.DjangoLoaddataDataDialog.html

Sat, 24 Apr 2021 11:25:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 24 Apr 2021 11:25:03 +0200
changeset 169
b8f263e05c39
parent 161
208fced62e00
child 172
ea7980ded4f3
permissions
-rw-r--r--

- implemented some code simplifications
- dropped support for Django < 2.0.0

<!DOCTYPE html>
<html><head>
<title>Plugin_Project_Django.ProjectDjango.DjangoLoaddataDataDialog</title>
<meta charset="UTF-8">
<style>
body {
    background: #EDECE6;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: white; background: #9D936E; }
h4 { color: white; background: #9D936E; }
    
a { color: #BA6D36; }

</style>
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>Plugin_Project_Django.ProjectDjango.DjangoLoaddataDataDialog</h1>

<p>
Module implementing a dialog to enter the data for the 'loaddata' command.
</p>
<h3>Global Attributes</h3>

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

<table>

<tr>
<td><a href="#DjangoLoaddataDataDialog">DjangoLoaddataDataDialog</a></td>
<td>Class implementing a dialog to enter the data for the 'loaddata' command.</td>
</tr>
</table>
<h3>Functions</h3>

<table>
<tr><td>None</td></tr>
</table>
<hr />
<hr />
<a NAME="DjangoLoaddataDataDialog" ID="DjangoLoaddataDataDialog"></a>
<h2>DjangoLoaddataDataDialog</h2>

<p>
    Class implementing a dialog to enter the data for the 'loaddata' command.
</p>
<h3>Derived from</h3>
QDialog, Ui_DjangoLoaddataDataDialog
<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="#DjangoLoaddataDataDialog.__init__">DjangoLoaddataDataDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#DjangoLoaddataDataDialog.getData">getData</a></td>
<td>Public method to get the data entered into the dialog.</td>
</tr>
<tr>
<td><a href="#DjangoLoaddataDataDialog.on_fixtureFileButton_clicked">on_fixtureFileButton_clicked</a></td>
<td>Private slot to select a fixture file via a file selection dialog.</td>
</tr>
<tr>
<td><a href="#DjangoLoaddataDataDialog.on_fixturesEdit_textChanged">on_fixturesEdit_textChanged</a></td>
<td>Private slot to handle a change of the fixtures text.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="DjangoLoaddataDataDialog.__init__" ID="DjangoLoaddataDataDialog.__init__"></a>
<h4>DjangoLoaddataDataDialog (Constructor)</h4>
<b>DjangoLoaddataDataDialog</b>(<i>project, parent=None</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>project</i></dt>
<dd>
reference to the Django project object
</dd>
<dt><i>parent</i></dt>
<dd>
reference to the parent widget (QWidget)
</dd>
</dl>
<a NAME="DjangoLoaddataDataDialog.getData" ID="DjangoLoaddataDataDialog.getData"></a>
<h4>DjangoLoaddataDataDialog.getData</h4>
<b>getData</b>(<i></i>)

<p>
        Public method to get the data entered into the dialog.
</p>
<dl>
<dt>Return:</dt>
<dd>
tuple containing the list of fixtures, list of apps to exclude,
            application to search in and a flag indicating to ignore
            non-existing fields and models
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
tuple of (list of str, list of str, str, bool)
</dd>
</dl>
<a NAME="DjangoLoaddataDataDialog.on_fixtureFileButton_clicked" ID="DjangoLoaddataDataDialog.on_fixtureFileButton_clicked"></a>
<h4>DjangoLoaddataDataDialog.on_fixtureFileButton_clicked</h4>
<b>on_fixtureFileButton_clicked</b>(<i></i>)

<p>
        Private slot to select a fixture file via a file selection dialog.
</p>
<a NAME="DjangoLoaddataDataDialog.on_fixturesEdit_textChanged" ID="DjangoLoaddataDataDialog.on_fixturesEdit_textChanged"></a>
<h4>DjangoLoaddataDataDialog.on_fixturesEdit_textChanged</h4>
<b>on_fixturesEdit_textChanged</b>(<i>txt</i>)

<p>
        Private slot to handle a change of the fixtures text.
</p>
<dl>

<dt><i>txt</i></dt>
<dd>
text of the line edit (string)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial