[16771b0] | 1 | |
---|
| 2 | |
---|
| 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
| 4 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
| 5 | |
---|
| 6 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 7 | <head> |
---|
| 8 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
| 9 | |
---|
| 10 | <title>associations — DataLoader v0.1.0 documentation</title> |
---|
| 11 | <link rel="stylesheet" href="../../_static/default.css" type="text/css" /> |
---|
| 12 | <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> |
---|
| 13 | <script type="text/javascript"> |
---|
| 14 | var DOCUMENTATION_OPTIONS = { |
---|
| 15 | URL_ROOT: '../../', |
---|
| 16 | VERSION: '0.1.0', |
---|
| 17 | COLLAPSE_INDEX: false, |
---|
| 18 | FILE_SUFFIX: '.html', |
---|
| 19 | HAS_SOURCE: true |
---|
| 20 | }; |
---|
| 21 | </script> |
---|
| 22 | <script type="text/javascript" src="../../_static/jquery.js"></script> |
---|
| 23 | <script type="text/javascript" src="../../_static/underscore.js"></script> |
---|
| 24 | <script type="text/javascript" src="../../_static/doctools.js"></script> |
---|
| 25 | <link rel="top" title="DataLoader v0.1.0 documentation" href="../../index.html" /> |
---|
| 26 | <link rel="up" title="Readers" href="index.html" /> |
---|
| 27 | <link rel="next" title="cansas_reader" href="cansas_reader.html" /> |
---|
| 28 | <link rel="prev" title="ascii_reader" href="ascii_reader.html" /> |
---|
| 29 | </head> |
---|
| 30 | <body> |
---|
| 31 | <div class="related"> |
---|
| 32 | <h3>Navigation</h3> |
---|
| 33 | <ul> |
---|
| 34 | <li class="right" style="margin-right: 10px"> |
---|
| 35 | <a href="../../genindex.html" title="General Index" |
---|
| 36 | accesskey="I">index</a></li> |
---|
| 37 | <li class="right" > |
---|
| 38 | <a href="../../py-modindex.html" title="Python Module Index" |
---|
| 39 | >modules</a> |</li> |
---|
| 40 | <li class="right" > |
---|
| 41 | <a href="cansas_reader.html" title="cansas_reader" |
---|
| 42 | accesskey="N">next</a> |</li> |
---|
| 43 | <li class="right" > |
---|
| 44 | <a href="ascii_reader.html" title="ascii_reader" |
---|
| 45 | accesskey="P">previous</a> |</li> |
---|
| 46 | <li><a href="../../index.html">DataLoader v0.1.0 documentation</a> »</li> |
---|
| 47 | <li><a href="index.html" accesskey="U">Readers</a> »</li> |
---|
| 48 | </ul> |
---|
| 49 | </div> |
---|
| 50 | |
---|
| 51 | <div class="document"> |
---|
| 52 | <div class="documentwrapper"> |
---|
| 53 | <div class="bodywrapper"> |
---|
| 54 | <div class="body"> |
---|
| 55 | |
---|
| 56 | <div class="section" id="associations"> |
---|
| 57 | <h1>associations<a class="headerlink" href="#associations" title="Permalink to this headline">¶</a></h1> |
---|
| 58 | <div class="section" id="module-DataLoader.readers.associations"> |
---|
| 59 | <span id="dataloader-readers-associations"></span><h2><a class="reference internal" href="#module-DataLoader.readers.associations" title="DataLoader.readers.associations"><tt class="xref py py-mod docutils literal"><span class="pre">DataLoader.readers.associations</span></tt></a><a class="headerlink" href="#module-DataLoader.readers.associations" title="Permalink to this headline">¶</a></h2> |
---|
| 60 | <p>Module to associate default readers to file extensions. |
---|
| 61 | The module reads an xml file to get the readers for each file extension. |
---|
| 62 | The readers are tried in order they appear when reading a file.</p> |
---|
| 63 | <dl class="function"> |
---|
| 64 | <dt id="DataLoader.readers.associations.read_associations"> |
---|
| 65 | <tt class="descclassname">DataLoader.readers.associations.</tt><tt class="descname">read_associations</tt><big>(</big><em>loader</em>, <em>settings='defaults.xml'</em><big>)</big><a class="headerlink" href="#DataLoader.readers.associations.read_associations" title="Permalink to this definition">¶</a></dt> |
---|
| 66 | <dd><p>Read the specified settings file to associate |
---|
| 67 | default readers to file extension.</p> |
---|
| 68 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 69 | <col class="field-name" /> |
---|
| 70 | <col class="field-body" /> |
---|
| 71 | <tbody valign="top"> |
---|
| 72 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
| 73 | <li><strong>loader</strong> – Loader object</li> |
---|
| 74 | <li><strong>settings</strong> – path to the XML settings file [string]</li> |
---|
| 75 | </ul> |
---|
| 76 | </td> |
---|
| 77 | </tr> |
---|
| 78 | </tbody> |
---|
| 79 | </table> |
---|
| 80 | </dd></dl> |
---|
| 81 | |
---|
| 82 | <dl class="function"> |
---|
| 83 | <dt id="DataLoader.readers.associations.register_readers"> |
---|
| 84 | <tt class="descclassname">DataLoader.readers.associations.</tt><tt class="descname">register_readers</tt><big>(</big><em>registry_function</em><big>)</big><a class="headerlink" href="#DataLoader.readers.associations.register_readers" title="Permalink to this definition">¶</a></dt> |
---|
| 85 | <dd><p>Function called by the registry/loader object to register |
---|
| 86 | all default readers using a call back function.</p> |
---|
| 87 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 88 | <col class="field-name" /> |
---|
| 89 | <col class="field-body" /> |
---|
| 90 | <tbody valign="top"> |
---|
| 91 | <tr class="field"><th class="field-name">Warning :</th><td class="field-body">this method is now obsolete</td> |
---|
| 92 | </tr> |
---|
| 93 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>registry_function</strong> – function to be called to register each reader</td> |
---|
| 94 | </tr> |
---|
| 95 | </tbody> |
---|
| 96 | </table> |
---|
| 97 | </dd></dl> |
---|
| 98 | |
---|
| 99 | </div> |
---|
| 100 | </div> |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | </div> |
---|
| 104 | </div> |
---|
| 105 | </div> |
---|
| 106 | <div class="sphinxsidebar"> |
---|
| 107 | <div class="sphinxsidebarwrapper"> |
---|
| 108 | <h3><a href="../../index.html">Table Of Contents</a></h3> |
---|
| 109 | <ul> |
---|
| 110 | <li><a class="reference internal" href="#">associations</a><ul> |
---|
| 111 | <li><a class="reference internal" href="#module-DataLoader.readers.associations"><tt class="docutils literal"><span class="pre">DataLoader.readers.associations</span></tt></a></li> |
---|
| 112 | </ul> |
---|
| 113 | </li> |
---|
| 114 | </ul> |
---|
| 115 | |
---|
| 116 | <h4>Previous topic</h4> |
---|
| 117 | <p class="topless"><a href="ascii_reader.html" |
---|
| 118 | title="previous chapter">ascii_reader</a></p> |
---|
| 119 | <h4>Next topic</h4> |
---|
| 120 | <p class="topless"><a href="cansas_reader.html" |
---|
| 121 | title="next chapter">cansas_reader</a></p> |
---|
| 122 | <h3>This Page</h3> |
---|
| 123 | <ul class="this-page-menu"> |
---|
| 124 | <li><a href="../../_sources/api/readers/associations.txt" |
---|
| 125 | rel="nofollow">Show Source</a></li> |
---|
| 126 | </ul> |
---|
| 127 | <div id="searchbox" style="display: none"> |
---|
| 128 | <h3>Quick search</h3> |
---|
| 129 | <form class="search" action="../../search.html" method="get"> |
---|
| 130 | <input type="text" name="q" size="18" /> |
---|
| 131 | <input type="submit" value="Go" /> |
---|
| 132 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
| 133 | <input type="hidden" name="area" value="default" /> |
---|
| 134 | </form> |
---|
| 135 | <p class="searchtip" style="font-size: 90%"> |
---|
| 136 | Enter search terms or a module, class or function name. |
---|
| 137 | </p> |
---|
| 138 | </div> |
---|
| 139 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
| 140 | </div> |
---|
| 141 | </div> |
---|
| 142 | <div class="clearer"></div> |
---|
| 143 | </div> |
---|
| 144 | <div class="related"> |
---|
| 145 | <h3>Navigation</h3> |
---|
| 146 | <ul> |
---|
| 147 | <li class="right" style="margin-right: 10px"> |
---|
| 148 | <a href="../../genindex.html" title="General Index" |
---|
| 149 | >index</a></li> |
---|
| 150 | <li class="right" > |
---|
| 151 | <a href="../../py-modindex.html" title="Python Module Index" |
---|
| 152 | >modules</a> |</li> |
---|
| 153 | <li class="right" > |
---|
| 154 | <a href="cansas_reader.html" title="cansas_reader" |
---|
| 155 | >next</a> |</li> |
---|
| 156 | <li class="right" > |
---|
| 157 | <a href="ascii_reader.html" title="ascii_reader" |
---|
| 158 | >previous</a> |</li> |
---|
| 159 | <li><a href="../../index.html">DataLoader v0.1.0 documentation</a> »</li> |
---|
| 160 | <li><a href="index.html" >Readers</a> »</li> |
---|
| 161 | </ul> |
---|
| 162 | </div> |
---|
| 163 | <div class="footer"> |
---|
| 164 | © Copyright 2010, sans group. |
---|
| 165 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7. |
---|
| 166 | </div> |
---|
| 167 | </body> |
---|
| 168 | </html> |
---|