paulb@118 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
paulb@396 | 2 | <html xmlns="http://www.w3.org/1999/xhtml"><head> |
paulb@118 | 3 | <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> |
paulb@396 | 4 | |
paulb@396 | 5 | <title>Creating Applications: Create a Directory</title><meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" /> |
paulb@396 | 6 | <link href="styles.css" rel="stylesheet" type="text/css" /></head> |
paulb@118 | 7 | <body> |
paulb@134 | 8 | <h1>Creating Applications: Create |
paulb@134 | 9 | a Directory</h1> |
paulb@134 | 10 | <p>The recommended directory |
paulb@134 | 11 | structure of an XSLForms application is as |
paulb@118 | 12 | follows:</p> |
paulb@396 | 13 | <table style="text-align: left; width: 80%;" align="center" border="0" cellpadding="5" cellspacing="0" width="60%"> |
paulb@128 | 14 | <tbody> |
paulb@128 | 15 | <tr> |
paulb@128 | 16 | <td width="60%"></td> |
paulb@134 | 17 | <th style="text-align: left;" colspan="2" width="40%">Example |
paulb@134 | 18 | Directory |
paulb@134 | 19 | Structure<br /> |
paulb@128 | 20 | </th> |
paulb@128 | 21 | </tr> |
paulb@128 | 22 | <tr> |
paulb@134 | 23 | <th style="text-align: right;">A |
paulb@134 | 24 | top-level directory corresponding to a Python package</th> |
paulb@396 | 25 | <td style="background-color: rgb(204, 204, 255); border-top-style: solid; border-left-style: solid; border-right-style: solid; border-right-width: 1px; border-left-width: 1px; border-top-width: 1px;" align="undefined" valign="undefined"><code><span style="font-weight: bold;">VerySimple</span><br /> |
paulb@134 | 26 | __init__.py</code></td> |
paulb@134 | 27 | <td></td> |
paulb@128 | 28 | </tr> |
paulb@128 | 29 | <tr> |
paulb@134 | 30 | <th style="text-align: right;">A subdirectory |
paulb@134 | 31 | containing non-code resources for the |
paulb@128 | 32 | application</th> |
paulb@396 | 33 | <td style="background-color: rgb(204, 204, 255); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px;"><br /> |
paulb@128 | 34 | </td> |
paulb@396 | 35 | <td><span class="subdirectory"><code><span style="font-weight: bold;">Resources</span><br /> |
paulb@134 | 36 | ...</code></span></td> |
paulb@128 | 37 | </tr> |
paulb@128 | 38 | </tbody> |
paulb@128 | 39 | </table> |
paulb@134 | 40 | <p>For the above example, the |
paulb@134 | 41 | directory structure would be created using UNIX-style commands |
paulb@134 | 42 | as follows:</p> |
paulb@129 | 43 | <pre>mkdir VerySimple<br />mkdir VerySimple/Resources<br />touch VerySimple/__init__.py</pre> |
paulb@134 | 44 | <p>It is in the <code>Resources</code> |
paulb@134 | 45 | subdirectory that we will save |
paulb@396 | 46 | our template files. First, however, we must undertake some <a href="data.html">data definition</a> as the next activity in the application development <a href="overview.html">process</a>.</p> |
paulb@396 | 47 | </body></html> |