"Fossies" - the Fresh Open Source Software Archive

Member "anticms-0.2.1/anticms_hp/config_en.html" (5 Nov 2005, 3962 Bytes) of package /linux/www/old/anticms-0.2.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!-- $Id: config_en.html,v 1.2 2005/11/05 12:35:36 aurb Exp $ -->
    2 
    3 <p>The settings are stored in the <strong>config.xml</strong> file (which
    4 must be in the same directory as <strong>index.py</strong>).  Here's an
    5 example of settings file:</p>
    6 
    7 <pre>
    8 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
    9 &lt;anticms_config version=&quot;0.1&quot;&gt;
   10   &lt;config host=&quot;.*&quot;&gt;
   11     &lt;item name=&quot;debug&quot; value=&quot;false&quot; type=&quot;bool&quot; /&gt;
   12     &lt;item name=&quot;print_gen_time&quot; value=&quot;true&quot; type=&quot;bool&quot; /&gt;
   13 
   14     &lt;item name=&quot;content_file&quot; value=&quot;data/content.xml&quot; type=&quot;str&quot; /&gt;
   15     &lt;item name=&quot;template_file&quot; value=&quot;data/template.html&quot; type=&quot;str&quot; /&gt;
   16     &lt;item name=&quot;code_dir&quot; value=&quot;code&quot; type=&quot;str&quot; /&gt;
   17     &lt;item name=&quot;data_dir&quot; value=&quot;data&quot; type=&quot;str&quot; /&gt;
   18 
   19     &lt;item name=&quot;input_encoding&quot; value=&quot;ISO-8859-13&quot; type=&quot;str&quot; /&gt;
   20     &lt;item name=&quot;output_encoding&quot; value=&quot;UTF-8&quot; type=&quot;str&quot; /&gt;
   21 
   22     &lt;item name=&quot;addr_suffix&quot; value=&quot;.html&quot; type=&quot;str&quot; /&gt;
   23     &lt;item name=&quot;addr_prefix&quot; value=&quot;/&quot; type=&quot;str&quot; /&gt;
   24     &lt;item name=&quot;addr_separator&quot; value=&quot;/&quot; type=&quot;str&quot; /&gt;
   25     &lt;item name=&quot;cont_separator&quot; value=&quot;-&quot; tyle=&quot;str&quot; /&gt;
   26   &lt;/config&gt;
   27 &lt;/anticms_config&gt;
   28 </pre>
   29 
   30 <h3><strong>anticms_config</strong> element</h3>
   31 
   32 <p>This is the top level element. The only attribute it has is
   33 <strong>version</strong>, which yields the version of format.</p>
   34 
   35 <h3><strong>config</strong> element</h3>
   36 
   37 <p>These elements contain settings information for each host. The attribute
   38 <strong>host</strong> contains regular expression that has to match server
   39 name. I. e. you can have several sites served from a single installation
   40 (if server name matches more than one expression, the first one is
   41 used; if a match isn't foud, an error is generated).</p>
   42 
   43 <h3><strong>item</strong> element</h3>
   44 
   45 <p>These elements are used to store the settings. Attributes:</p>
   46 
   47 <table cellpadding="6" cellspacing="0">
   48 <tr>
   49  <th>name</th>
   50  <th>type</th>
   51  <th>value</th>
   52 </tr>
   53 
   54 <tr>
   55  <td>debug</td>
   56  <td>bool</td>
   57  <td>turns (on|off) verbose python error messages (cgitb module).</td>
   58 </tr>
   59 
   60 <tr>
   61  <td>print_gen_time</td>
   62  <td>bool</td>
   63  <td>whether to print the time that the document was generated in (as a comment at the bottom of the document).</td>
   64 </tr>
   65 
   66 <tr>
   67  <td>content_file</td>
   68  <td>str</td>
   69  <td>the content file (must specify path relative to the one with <strong>index.py</strong>).</td>
   70 </tr>
   71 
   72 <tr>
   73  <td>template_file</td>
   74  <td>str</td>
   75  <td>the template file (must specify path relative to the one with <strong>index.py</strong>).</td>
   76 </tr>
   77 
   78 <tr>
   79  <td>code_dir</td>
   80  <td>str</td>
   81  <td>directory that contains program modules (must specify path relative to the one with <strong>index.py</strong>).</td>
   82 </tr>
   83 
   84 <tr>
   85  <td>data_dir</td>
   86  <td>str</td>
   87  <td>direcorty that contains files included in the content (must specify path relative to the one with <strong>index.py</strong>).</td>
   88 </tr>
   89 
   90 <tr>
   91  <td>input_encoding</td>
   92  <td>str</td>
   93  <td>the encoding used in template file and files included in the content.</td>
   94 </tr>
   95 
   96 <tr>
   97  <td>output_encoding</td>
   98  <td>str</td>
   99  <td>the output encoding (this encoding is also printed in HTTP header).</td>
  100 </tr>
  101 
  102 <tr>
  103  <td>addr_suffix</td>
  104  <td>str</td>
  105  <td>suffix, attached to links.</td>
  106 </tr>
  107 
  108 <tr>
  109  <td>addr_prefix</td>
  110  <td>str</td>
  111  <td>preffix, attached to links.</td>
  112 </tr>
  113 
  114 <tr>
  115  <td>addr_separator</td>
  116  <td>str</td>
  117  <td>separator used to separate page names in links.</td>
  118 </tr>
  119 
  120 <tr>
  121  <td>cont_separator</td>
  122  <td>str</td>
  123  <td>separator used to separate page names in content file.</td>
  124 </tr>
  125 </table>