ProjectDjango/Documentation/source/Plugin_Project_Django.ProjectDjango.Project.html

changeset 125
d280acf98fb5
parent 110
da5ee5012004
child 132
576cb5a3b035
equal deleted inserted replaced
124:5c925935cbb9 125:d280acf98fb5
78 </p> 78 </p>
79 <h3>Derived from</h3> 79 <h3>Derived from</h3>
80 QObject 80 QObject
81 <h3>Class Attributes</h3> 81 <h3>Class Attributes</h3>
82 <table> 82 <table>
83 <tr><td>RecentApplicationsKey</td></tr> 83 <tr><td>RecentApplicationsKey</td></tr><tr><td>RecentDatabaseNamesKey</td></tr>
84 </table> 84 </table>
85 <h3>Class Methods</h3> 85 <h3>Class Methods</h3>
86 <table> 86 <table>
87 <tr><td>None</td></tr> 87 <tr><td>None</td></tr>
88 </table> 88 </table>
237 <td>Private slot to load data from fixture files.</td> 237 <td>Private slot to load data from fixture files.</td>
238 </tr><tr> 238 </tr><tr>
239 <td><a href="#Project.__loadRecentApplications">__loadRecentApplications</a></td> 239 <td><a href="#Project.__loadRecentApplications">__loadRecentApplications</a></td>
240 <td>Private method to load the recently used applications list.</td> 240 <td>Private method to load the recently used applications list.</td>
241 </tr><tr> 241 </tr><tr>
242 <td><a href="#Project.__loadRecentDatabaseNames">__loadRecentDatabaseNames</a></td>
243 <td>Private method to load the list of recently used database names.</td>
244 </tr><tr>
242 <td><a href="#Project.__loadRecentTestData">__loadRecentTestData</a></td> 245 <td><a href="#Project.__loadRecentTestData">__loadRecentTestData</a></td>
243 <td>Private method to load the recently used test data lists.</td> 246 <td>Private method to load the recently used test data lists.</td>
244 </tr><tr> 247 </tr><tr>
245 <td><a href="#Project.__makeMigrations">__makeMigrations</a></td> 248 <td><a href="#Project.__makeMigrations">__makeMigrations</a></td>
246 <td>Private slot to generate migrations for the Django project.</td> 249 <td>Private slot to generate migrations for the Django project.</td>
273 <td>Private slot to run the test suite for applications or the whole site.</td> 276 <td>Private slot to run the test suite for applications or the whole site.</td>
274 </tr><tr> 277 </tr><tr>
275 <td><a href="#Project.__saveRecentApplications">__saveRecentApplications</a></td> 278 <td><a href="#Project.__saveRecentApplications">__saveRecentApplications</a></td>
276 <td>Private method to save the list of recently used applications list.</td> 279 <td>Private method to save the list of recently used applications list.</td>
277 </tr><tr> 280 </tr><tr>
281 <td><a href="#Project.__saveRecentDatabaseNames">__saveRecentDatabaseNames</a></td>
282 <td>Private method to save the list of recently used database names.</td>
283 </tr><tr>
278 <td><a href="#Project.__saveRecentTestData">__saveRecentTestData</a></td> 284 <td><a href="#Project.__saveRecentTestData">__saveRecentTestData</a></td>
279 <td>Private method to save the list of recently used test data.</td> 285 <td>Private method to save the list of recently used test data.</td>
280 </tr><tr> 286 </tr><tr>
287 <td><a href="#Project.__selectDatabaseName">__selectDatabaseName</a></td>
288 <td>Private method to select the name of the database to work with.</td>
289 </tr><tr>
281 <td><a href="#Project.__selectSite">__selectSite</a></td> 290 <td><a href="#Project.__selectSite">__selectSite</a></td>
282 <td>Private method to select a site to work with.</td> 291 <td>Private method to select a site to work with.</td>
283 </tr><tr> 292 </tr><tr>
293 <td><a href="#Project.__sendTestEmail">__sendTestEmail</a></td>
294 <td>Private slot to send a test email through Django.</td>
295 </tr><tr>
284 <td><a href="#Project.__serverProcFinished">__serverProcFinished</a></td> 296 <td><a href="#Project.__serverProcFinished">__serverProcFinished</a></td>
285 <td>Private slot connected to the finished signal.</td> 297 <td>Private slot connected to the finished signal.</td>
286 </tr><tr> 298 </tr><tr>
299 <td><a href="#Project.__setCurrentDatabase">__setCurrentDatabase</a></td>
300 <td>Private method to set the database name to be used.</td>
301 </tr><tr>
287 <td><a href="#Project.__setCurrentSite">__setCurrentSite</a></td> 302 <td><a href="#Project.__setCurrentSite">__setCurrentSite</a></td>
288 <td>Private slot to set the current site.</td> 303 <td>Private slot to set the current site.</td>
289 </tr><tr> 304 </tr><tr>
290 <td><a href="#Project.__showHelpIndex">__showHelpIndex</a></td> 305 <td><a href="#Project.__showHelpIndex">__showHelpIndex</a></td>
291 <td>Private slot to show the help index page.</td> 306 <td>Private slot to show the help index page.</td>
333 <td>Public method to compile the message catalogs.</td> 348 <td>Public method to compile the message catalogs.</td>
334 </tr><tr> 349 </tr><tr>
335 <td><a href="#Project.compileSelectedCatalogs">compileSelectedCatalogs</a></td> 350 <td><a href="#Project.compileSelectedCatalogs">compileSelectedCatalogs</a></td>
336 <td>Public method to update the message catalogs.</td> 351 <td>Public method to update the message catalogs.</td>
337 </tr><tr> 352 </tr><tr>
353 <td><a href="#Project.currentDatabase">currentDatabase</a></td>
354 <td>Public method to get the database name to be used.</td>
355 </tr><tr>
338 <td><a href="#Project.getDjangoVersion">getDjangoVersion</a></td> 356 <td><a href="#Project.getDjangoVersion">getDjangoVersion</a></td>
339 <td>Public method to get the Django version as a tuple.</td> 357 <td>Public method to get the Django version as a tuple.</td>
340 </tr><tr> 358 </tr><tr>
341 <td><a href="#Project.getDjangoVersionString">getDjangoVersionString</a></td> 359 <td><a href="#Project.getDjangoVersionString">getDjangoVersionString</a></td>
342 <td>Public method to get the Django version as a string.</td> 360 <td>Public method to get the Django version as a string.</td>
351 <td>Public method to get the path of the eric6 project.</td> 369 <td>Public method to get the path of the eric6 project.</td>
352 </tr><tr> 370 </tr><tr>
353 <td><a href="#Project.getRecentApplications">getRecentApplications</a></td> 371 <td><a href="#Project.getRecentApplications">getRecentApplications</a></td>
354 <td>Public method to get the list of recent applications.</td> 372 <td>Public method to get the list of recent applications.</td>
355 </tr><tr> 373 </tr><tr>
374 <td><a href="#Project.getRecentDatabaseNames">getRecentDatabaseNames</a></td>
375 <td>Public method to get the list of recently used database names.</td>
376 </tr><tr>
356 <td><a href="#Project.getRecentTestData">getRecentTestData</a></td> 377 <td><a href="#Project.getRecentTestData">getRecentTestData</a></td>
357 <td>Public method to get the list of recent test data.</td> 378 <td>Public method to get the list of recent test data.</td>
358 </tr><tr> 379 </tr><tr>
359 <td><a href="#Project.initActions">initActions</a></td> 380 <td><a href="#Project.initActions">initActions</a></td>
360 <td>Public method to define the Django actions.</td> 381 <td>Public method to define the Django actions.</td>
386 <td><a href="#Project.registerOpenHook">registerOpenHook</a></td> 407 <td><a href="#Project.registerOpenHook">registerOpenHook</a></td>
387 <td>Public method to register the open hook to open a translations file in a translations editor.</td> 408 <td>Public method to register the open hook to open a translations file in a translations editor.</td>
388 </tr><tr> 409 </tr><tr>
389 <td><a href="#Project.setMostRecentApplication">setMostRecentApplication</a></td> 410 <td><a href="#Project.setMostRecentApplication">setMostRecentApplication</a></td>
390 <td>Public method to set the most recently used applications entry.</td> 411 <td>Public method to set the most recently used applications entry.</td>
412 </tr><tr>
413 <td><a href="#Project.setMostRecentDatabaseNames">setMostRecentDatabaseNames</a></td>
414 <td>Public method to set the most recently used database names.</td>
391 </tr><tr> 415 </tr><tr>
392 <td><a href="#Project.setMostRecentTestData">setMostRecentTestData</a></td> 416 <td><a href="#Project.setMostRecentTestData">setMostRecentTestData</a></td>
393 <td>Public method to set the most recently used test data entry.</td> 417 <td>Public method to set the most recently used test data entry.</td>
394 </tr><tr> 418 </tr><tr>
395 <td><a href="#Project.startProjectOrApplication">startProjectOrApplication</a></td> 419 <td><a href="#Project.startProjectOrApplication">startProjectOrApplication</a></td>
904 </p><a NAME="Project.__loadRecentApplications" ID="Project.__loadRecentApplications"></a> 928 </p><a NAME="Project.__loadRecentApplications" ID="Project.__loadRecentApplications"></a>
905 <h4>Project.__loadRecentApplications</h4> 929 <h4>Project.__loadRecentApplications</h4>
906 <b>__loadRecentApplications</b>(<i></i>) 930 <b>__loadRecentApplications</b>(<i></i>)
907 <p> 931 <p>
908 Private method to load the recently used applications list. 932 Private method to load the recently used applications list.
933 </p><a NAME="Project.__loadRecentDatabaseNames" ID="Project.__loadRecentDatabaseNames"></a>
934 <h4>Project.__loadRecentDatabaseNames</h4>
935 <b>__loadRecentDatabaseNames</b>(<i></i>)
936 <p>
937 Private method to load the list of recently used database names.
909 </p><a NAME="Project.__loadRecentTestData" ID="Project.__loadRecentTestData"></a> 938 </p><a NAME="Project.__loadRecentTestData" ID="Project.__loadRecentTestData"></a>
910 <h4>Project.__loadRecentTestData</h4> 939 <h4>Project.__loadRecentTestData</h4>
911 <b>__loadRecentTestData</b>(<i></i>) 940 <b>__loadRecentTestData</b>(<i></i>)
912 <p> 941 <p>
913 Private method to load the recently used test data lists. 942 Private method to load the recently used test data lists.
985 </dl><a NAME="Project.__saveRecentApplications" ID="Project.__saveRecentApplications"></a> 1014 </dl><a NAME="Project.__saveRecentApplications" ID="Project.__saveRecentApplications"></a>
986 <h4>Project.__saveRecentApplications</h4> 1015 <h4>Project.__saveRecentApplications</h4>
987 <b>__saveRecentApplications</b>(<i></i>) 1016 <b>__saveRecentApplications</b>(<i></i>)
988 <p> 1017 <p>
989 Private method to save the list of recently used applications list. 1018 Private method to save the list of recently used applications list.
1019 </p><a NAME="Project.__saveRecentDatabaseNames" ID="Project.__saveRecentDatabaseNames"></a>
1020 <h4>Project.__saveRecentDatabaseNames</h4>
1021 <b>__saveRecentDatabaseNames</b>(<i></i>)
1022 <p>
1023 Private method to save the list of recently used database names.
990 </p><a NAME="Project.__saveRecentTestData" ID="Project.__saveRecentTestData"></a> 1024 </p><a NAME="Project.__saveRecentTestData" ID="Project.__saveRecentTestData"></a>
991 <h4>Project.__saveRecentTestData</h4> 1025 <h4>Project.__saveRecentTestData</h4>
992 <b>__saveRecentTestData</b>(<i></i>) 1026 <b>__saveRecentTestData</b>(<i></i>)
993 <p> 1027 <p>
994 Private method to save the list of recently used test data. 1028 Private method to save the list of recently used test data.
1029 </p><a NAME="Project.__selectDatabaseName" ID="Project.__selectDatabaseName"></a>
1030 <h4>Project.__selectDatabaseName</h4>
1031 <b>__selectDatabaseName</b>(<i></i>)
1032 <p>
1033 Private method to select the name of the database to work with.
995 </p><a NAME="Project.__selectSite" ID="Project.__selectSite"></a> 1034 </p><a NAME="Project.__selectSite" ID="Project.__selectSite"></a>
996 <h4>Project.__selectSite</h4> 1035 <h4>Project.__selectSite</h4>
997 <b>__selectSite</b>(<i></i>) 1036 <b>__selectSite</b>(<i></i>)
998 <p> 1037 <p>
999 Private method to select a site to work with. 1038 Private method to select a site to work with.
1039 </p><a NAME="Project.__sendTestEmail" ID="Project.__sendTestEmail"></a>
1040 <h4>Project.__sendTestEmail</h4>
1041 <b>__sendTestEmail</b>(<i></i>)
1042 <p>
1043 Private slot to send a test email through Django.
1000 </p><a NAME="Project.__serverProcFinished" ID="Project.__serverProcFinished"></a> 1044 </p><a NAME="Project.__serverProcFinished" ID="Project.__serverProcFinished"></a>
1001 <h4>Project.__serverProcFinished</h4> 1045 <h4>Project.__serverProcFinished</h4>
1002 <b>__serverProcFinished</b>(<i></i>) 1046 <b>__serverProcFinished</b>(<i></i>)
1003 <p> 1047 <p>
1004 Private slot connected to the finished signal. 1048 Private slot connected to the finished signal.
1005 </p><a NAME="Project.__setCurrentSite" ID="Project.__setCurrentSite"></a> 1049 </p><a NAME="Project.__setCurrentDatabase" ID="Project.__setCurrentDatabase"></a>
1050 <h4>Project.__setCurrentDatabase</h4>
1051 <b>__setCurrentDatabase</b>(<i>database</i>)
1052 <p>
1053 Private method to set the database name to be used.
1054 </p><dl>
1055 <dt><i>database</i> (str)</dt>
1056 <dd>
1057 name of the database
1058 </dd>
1059 </dl><a NAME="Project.__setCurrentSite" ID="Project.__setCurrentSite"></a>
1006 <h4>Project.__setCurrentSite</h4> 1060 <h4>Project.__setCurrentSite</h4>
1007 <b>__setCurrentSite</b>(<i>site</i>) 1061 <b>__setCurrentSite</b>(<i>site</i>)
1008 <p> 1062 <p>
1009 Private slot to set the current site. 1063 Private slot to set the current site.
1010 </p><dl> 1064 </p><dl>
1150 </p><dl> 1204 </p><dl>
1151 <dt><i>filenames</i></dt> 1205 <dt><i>filenames</i></dt>
1152 <dd> 1206 <dd>
1153 list of filenames 1207 list of filenames
1154 </dd> 1208 </dd>
1209 </dl><a NAME="Project.currentDatabase" ID="Project.currentDatabase"></a>
1210 <h4>Project.currentDatabase</h4>
1211 <b>currentDatabase</b>(<i></i>)
1212 <p>
1213 Public method to get the database name to be used.
1214 </p><dl>
1215 <dt>Returns:</dt>
1216 <dd>
1217 database name
1218 </dd>
1219 </dl><dl>
1220 <dt>Return Type:</dt>
1221 <dd>
1222 str
1223 </dd>
1155 </dl><a NAME="Project.getDjangoVersion" ID="Project.getDjangoVersion"></a> 1224 </dl><a NAME="Project.getDjangoVersion" ID="Project.getDjangoVersion"></a>
1156 <h4>Project.getDjangoVersion</h4> 1225 <h4>Project.getDjangoVersion</h4>
1157 <b>getDjangoVersion</b>(<i></i>) 1226 <b>getDjangoVersion</b>(<i></i>)
1158 <p> 1227 <p>
1159 Public method to get the Django version as a tuple. 1228 Public method to get the Django version as a tuple.
1220 Public method to get the list of recent applications. 1289 Public method to get the list of recent applications.
1221 </p><dl> 1290 </p><dl>
1222 <dt>Returns:</dt> 1291 <dt>Returns:</dt>
1223 <dd> 1292 <dd>
1224 list of recent applications entries (list of strings) 1293 list of recent applications entries (list of strings)
1294 </dd>
1295 </dl><a NAME="Project.getRecentDatabaseNames" ID="Project.getRecentDatabaseNames"></a>
1296 <h4>Project.getRecentDatabaseNames</h4>
1297 <b>getRecentDatabaseNames</b>(<i></i>)
1298 <p>
1299 Public method to get the list of recently used database names.
1300 </p><dl>
1301 <dt>Returns:</dt>
1302 <dd>
1303 list of recently used database names
1304 </dd>
1305 </dl><dl>
1306 <dt>Return Type:</dt>
1307 <dd>
1308 list of str
1225 </dd> 1309 </dd>
1226 </dl><a NAME="Project.getRecentTestData" ID="Project.getRecentTestData"></a> 1310 </dl><a NAME="Project.getRecentTestData" ID="Project.getRecentTestData"></a>
1227 <h4>Project.getRecentTestData</h4> 1311 <h4>Project.getRecentTestData</h4>
1228 <b>getRecentTestData</b>(<i>key</i>) 1312 <b>getRecentTestData</b>(<i>key</i>)
1229 <p> 1313 <p>
1263 <dd> 1347 <dd>
1264 QMenu 1348 QMenu
1265 </dd> 1349 </dd>
1266 </dl><a NAME="Project.makeMigrations" ID="Project.makeMigrations"></a> 1350 </dl><a NAME="Project.makeMigrations" ID="Project.makeMigrations"></a>
1267 <h4>Project.makeMigrations</h4> 1351 <h4>Project.makeMigrations</h4>
1268 <b>makeMigrations</b>(<i>apps, migration=None, dryRun=False, empty=False</i>) 1352 <b>makeMigrations</b>(<i>apps, migration=None, dryRun=False, empty=False, merge=False</i>)
1269 <p> 1353 <p>
1270 Public method to generate migrations. 1354 Public method to generate migrations.
1271 </p><dl> 1355 </p><dl>
1272 <dt><i>apps</i> (list of str)</dt> 1356 <dt><i>apps</i> (list of str)</dt>
1273 <dd> 1357 <dd>
1279 <dd> 1363 <dd>
1280 flag indicating a dry run 1364 flag indicating a dry run
1281 </dd><dt><i>empty</i> (bool)</dt> 1365 </dd><dt><i>empty</i> (bool)</dt>
1282 <dd> 1366 <dd>
1283 flag indicating the creation of an empty migration 1367 flag indicating the creation of an empty migration
1368 </dd><dt><i>merge</i> (bool)</dt>
1369 <dd>
1370 flag indicating to fix migration conflicts
1284 </dd> 1371 </dd>
1285 </dl><a NAME="Project.newForm" ID="Project.newForm"></a> 1372 </dl><a NAME="Project.newForm" ID="Project.newForm"></a>
1286 <h4>Project.newForm</h4> 1373 <h4>Project.newForm</h4>
1287 <b>newForm</b>(<i>path</i>) 1374 <b>newForm</b>(<i>path</i>)
1288 <p> 1375 <p>
1335 Public method to set the most recently used applications entry. 1422 Public method to set the most recently used applications entry.
1336 </p><dl> 1423 </p><dl>
1337 <dt><i>applStr</i></dt> 1424 <dt><i>applStr</i></dt>
1338 <dd> 1425 <dd>
1339 applications entry (string) 1426 applications entry (string)
1427 </dd>
1428 </dl><a NAME="Project.setMostRecentDatabaseNames" ID="Project.setMostRecentDatabaseNames"></a>
1429 <h4>Project.setMostRecentDatabaseNames</h4>
1430 <b>setMostRecentDatabaseNames</b>(<i>dbName</i>)
1431 <p>
1432 Public method to set the most recently used database names.
1433 </p><dl>
1434 <dt><i>dbName</i> (str)</dt>
1435 <dd>
1436 database name
1340 </dd> 1437 </dd>
1341 </dl><a NAME="Project.setMostRecentTestData" ID="Project.setMostRecentTestData"></a> 1438 </dl><a NAME="Project.setMostRecentTestData" ID="Project.setMostRecentTestData"></a>
1342 <h4>Project.setMostRecentTestData</h4> 1439 <h4>Project.setMostRecentTestData</h4>
1343 <b>setMostRecentTestData</b>(<i>key, data</i>) 1440 <b>setMostRecentTestData</b>(<i>key, data</i>)
1344 <p> 1441 <p>

eric ide

mercurial