paulb@615 | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
paulb@118 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
paulb@396 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"><head> |
paulb@118 | 4 | <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> |
paulb@615 | 5 | <title>Creating Applications: Create a Directory</title> |
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@615 | 17 | <th style="text-align: left;" colspan="2" width="40%">Example Directory Structure</th> |
paulb@128 | 18 | </tr> |
paulb@128 | 19 | <tr> |
paulb@134 | 20 | <th style="text-align: right;">A |
paulb@134 | 21 | top-level directory corresponding to a Python package</th> |
paulb@396 | 22 | <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 | 23 | __init__.py</code></td> |
paulb@134 | 24 | <td></td> |
paulb@128 | 25 | </tr> |
paulb@128 | 26 | <tr> |
paulb@615 | 27 | <th style="text-align: right;">A subdirectory |
paulb@134 | 28 | containing non-code resources for the |
paulb@128 | 29 | application</th> |
paulb@396 | 30 | <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 | 31 | </td> |
paulb@396 | 32 | <td><span class="subdirectory"><code><span style="font-weight: bold;">Resources</span><br /> |
paulb@134 | 33 | ...</code></span></td> |
paulb@128 | 34 | </tr> |
paulb@128 | 35 | </tbody> |
paulb@128 | 36 | </table> |
paulb@134 | 37 | <p>For the above example, the |
paulb@615 | 38 | directory structure would be created using UNIX-style commands |
paulb@134 | 39 | as follows:</p> |
paulb@129 | 40 | <pre>mkdir VerySimple<br />mkdir VerySimple/Resources<br />touch VerySimple/__init__.py</pre> |
paulb@134 | 41 | <p>It is in the <code>Resources</code> |
paulb@134 | 42 | subdirectory that we will save |
paulb@396 | 43 | 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@615 | 44 | </body></html> |