1.1 --- a/docs/directory.html Mon Jul 18 16:43:02 2005 +0000
1.2 +++ b/docs/directory.html Mon Jul 18 22:31:18 2005 +0000
1.3 @@ -1,46 +1,91 @@
1.4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.5 <html xmlns="http://www.w3.org/1999/xhtml">
1.6 <head>
1.7 +
1.8 +
1.9 +
1.10 +
1.11 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" />
1.12 +
1.13 +
1.14 +
1.15 +
1.16 +
1.17 +
1.18 <title>Creating Applications: Create a Directory</title>
1.19 - <meta name="generator"
1.20 - content="amaya 8.1a, see http://www.w3.org/Amaya/" />
1.21 + <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" />
1.22 +
1.23 +
1.24 +
1.25 +
1.26 <link href="styles.css" rel="stylesheet" type="text/css" />
1.27 </head>
1.28 +
1.29 +
1.30 <body>
1.31 +
1.32 +
1.33 <h1>Creating Applications: Create a Directory</h1>
1.34 +
1.35 +
1.36 <p>The recommended directory structure of an XSLForms application is as
1.37 follows:</p>
1.38 -<ul>
1.39 - <li>A top-level directory corresponding to a Python package,
1.40 -containing...<br />
1.41 - <ul>
1.42 - <li>An <code>__init__.py</code> file and other source files,
1.43 -containing the <a href="Web-resource.html">Web resources</a> and other
1.44 -application logic.</li>
1.45 - <li>A subdirectory containing non-code resources for the
1.46 -application.</li>
1.47 - <li>Other package directories, if necessary.</li>
1.48 - </ul>
1.49 - </li>
1.50 -</ul>
1.51 -<p>For example, we might create a directory structure like this:</p>
1.52 -<ul>
1.53 - <li>A top-level directory called <code>Configurator</code>,
1.54 -containing...<br />
1.55 - <ul>
1.56 - <li>An <code>__init__.py</code> file containing the Web
1.57 -resources and other application logic.</li>
1.58 - <li>A subdirectory called <code>Resources</code> containing
1.59 -non-code resources.</li>
1.60 - </ul>
1.61 - </li>
1.62 -</ul>
1.63 -<p>In UNIX-style commands, this would be done as follows:</p>
1.64 +
1.65 +<table style="text-align: left; width: 80%;" align="center" border="0" cellpadding="5" cellspacing="0" width="60%">
1.66 +
1.67 + <tbody>
1.68 +
1.69 + <tr>
1.70 +
1.71 + <td width="60%"></td>
1.72 +
1.73 + <th style="text-align: left;" colspan="2" width="40%">Example Directory Structure<br />
1.74 +
1.75 + </th>
1.76 +
1.77 +
1.78 + </tr>
1.79 +
1.80 + <tr>
1.81 +
1.82 + <th style="text-align: right;">A top-level directory corresponding to a Python package</th>
1.83 +
1.84 + <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"><span style="font-weight: bold;">Configurator</span><br />
1.85 +__init__.py</td>
1.86 +
1.87 + <td align="undefined" valign="undefined"></td>
1.88 +
1.89 + </tr>
1.90 +
1.91 +
1.92 + <tr>
1.93 +
1.94 + <th style="text-align: right;">A subdirectory containing non-code resources for the
1.95 +application</th>
1.96 +
1.97 + <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;" align="undefined" valign="undefined"><br />
1.98 +
1.99 + </td>
1.100 +
1.101 + <td><span class="subdirectory"><span style="font-weight: bold;">Resources</span><br />
1.102 +
1.103 +...</span></td>
1.104 +
1.105 + </tr>
1.106 +
1.107 +
1.108 + </tbody>
1.109 +</table>
1.110 +<p>For the above example, the directory structure would be created using UNIX-style commands as follows:</p>
1.111 +
1.112 +
1.113 <pre>mkdir Configurator<br />mkdir Configurator/Resources<br />touch Configurator/__init__.py</pre>
1.114 +
1.115 +
1.116 <p>It is in the <code>Resources</code> subdirectory that we will save
1.117 our template files when <a href="design.html">designing</a> them as
1.118 -part of the next activity in the application development <a
1.119 - href="overview.html">process</a>.</p>
1.120 +part of the next activity in the application development <a href="overview.html">process</a>.</p>
1.121 +
1.122 +
1.123 </body>
1.124 </html>