This file is indexed.

/usr/share/doc/python-routes/html/index.html is in python-routes 2.3.1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Routes Documentation &mdash; Routes 2.3.1 documentation</title>
    
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '2.3.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="Routes 2.3.1 documentation" href="#" />
    <link rel="next" title="Introduction" href="introduction.html" /> 
  </head>
  <body role="document">
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="introduction.html" title="Introduction"
             accesskey="N">next</a> |</li>
        <li class="nav-item nav-item-0"><a href="#">Routes 2.3.1 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="routes-documentation">
<h1>Routes Documentation<a class="headerlink" href="#routes-documentation" title="Permalink to this headline"></a></h1>
<p>Routes is a Python re-implementation of the Rails routes system for mapping URLs to application actions, and conversely to generate URLs. Routes makes it easy to create pretty and concise URLs that are RESTful with little effort.</p>
<p>Routes allows conditional matching based on domain, cookies, HTTP method, or a custom function. Sub-domain support is built in. Routes comes with an extensive unit test suite.</p>
<p>Current features:</p>
<ul class="simple">
<li>Sophisticated route lookup and URL generation</li>
<li>Named routes</li>
<li>Redirect routes</li>
<li>Wildcard paths before and after static parts</li>
<li>Sub-domain support built-in</li>
<li>Conditional matching based on domain, cookies, HTTP method (RESTful), and more</li>
<li>Easily extensible utilizing custom condition functions and route generation
functions</li>
<li>Extensive unit tests</li>
</ul>
<div class="section" id="installing">
<h2>Installing<a class="headerlink" href="#installing" title="Permalink to this headline"></a></h2>
<p>Routes can be easily installed with pip or easy_install:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ easy_install routes
</pre></div>
</div>
</div>
<div class="section" id="example">
<h2>Example<a class="headerlink" href="#example" title="Permalink to this headline"></a></h2>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="c1"># Setup a mapper</span>
<span class="kn">from</span> <span class="nn">routes</span> <span class="kn">import</span> <span class="n">Mapper</span>
<span class="nb">map</span> <span class="o">=</span> <span class="n">Mapper</span><span class="p">()</span>
<span class="nb">map</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="s2">&quot;/error/{action}/{id}&quot;</span><span class="p">,</span> <span class="n">controller</span><span class="o">=</span><span class="s2">&quot;error&quot;</span><span class="p">)</span>
<span class="nb">map</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="s2">&quot;home&quot;</span><span class="p">,</span> <span class="s2">&quot;/&quot;</span><span class="p">,</span> <span class="n">controller</span><span class="o">=</span><span class="s2">&quot;main&quot;</span><span class="p">,</span> <span class="n">action</span><span class="o">=</span><span class="s2">&quot;index&quot;</span><span class="p">)</span>

<span class="c1"># Match a URL, returns a dict or None if no match</span>
<span class="n">result</span> <span class="o">=</span> <span class="nb">map</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s1">&#39;/error/myapp/4&#39;</span><span class="p">)</span>
<span class="c1"># result == {&#39;controller&#39;: &#39;error&#39;, &#39;action&#39;: &#39;myapp&#39;, &#39;id&#39;: &#39;4&#39;}</span>
</pre></div>
</div>
</div>
<div class="section" id="source">
<h2>Source<a class="headerlink" href="#source" title="Permalink to this headline"></a></h2>
<p>The <a class="reference external" href="http://github.com/bbangert/routes">routes source can be found on GitHub</a>.</p>
</div>
<div class="section" id="bugs-support">
<h2>Bugs/Support<a class="headerlink" href="#bugs-support" title="Permalink to this headline"></a></h2>
<p>Bug&#8217;s can be reported on the <a class="reference external" href="https://github.com/bbangert/routes/issues">github issue tracker</a>. Note that routes is in maintenance
mode so bug reports are unlikely to be worked on, pull requests will be applied
if submitted with tests.</p>
</div>
<div class="section" id="documentation">
<h2>Documentation<a class="headerlink" href="#documentation" title="Permalink to this headline"></a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="setting_up.html">Setting up routes</a><ul>
<li class="toctree-l2"><a class="reference internal" href="setting_up.html#requirements">Requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="setting_up.html#magic-path-info">Magic path_info</a></li>
<li class="toctree-l2"><a class="reference internal" href="setting_up.html#conditions">Conditions</a></li>
<li class="toctree-l2"><a class="reference internal" href="setting_up.html#wildcard-routes">Wildcard routes</a></li>
<li class="toctree-l2"><a class="reference internal" href="setting_up.html#format-extensions">Format extensions</a></li>
<li class="toctree-l2"><a class="reference internal" href="setting_up.html#submappers">Submappers</a></li>
<li class="toctree-l2"><a class="reference internal" href="setting_up.html#submapper-helpers">Submapper helpers</a></li>
<li class="toctree-l2"><a class="reference internal" href="setting_up.html#adding-routes-from-a-nested-application">Adding routes from a nested application</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="generating.html">Generation</a><ul>
<li class="toctree-l2"><a class="reference internal" href="generating.html#generating-routes-based-on-the-current-url">Generating routes based on the current URL</a></li>
<li class="toctree-l2"><a class="reference internal" href="generating.html#generation-only-routes-aka-static-routes">Generation-only routes (aka. static routes)</a></li>
<li class="toctree-l2"><a class="reference internal" href="generating.html#filter-functions">Filter functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="generating.html#generating-urls-with-subdomains">Generating URLs with subdomains</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="restful.html">RESTful services</a><ul>
<li class="toctree-l2"><a class="reference internal" href="restful.html#resource-options">Resource options</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="uni_redirect_rest.html">Unicode, Redirects, and More</a><ul>
<li class="toctree-l2"><a class="reference internal" href="uni_redirect_rest.html#unicode">Unicode</a></li>
<li class="toctree-l2"><a class="reference internal" href="uni_redirect_rest.html#redirect-routes">Redirect Routes</a></li>
<li class="toctree-l2"><a class="reference internal" href="uni_redirect_rest.html#printing">Printing</a></li>
<li class="toctree-l2"><a class="reference internal" href="uni_redirect_rest.html#introspection">Introspection</a></li>
<li class="toctree-l2"><a class="reference internal" href="uni_redirect_rest.html#other">Other</a></li>
<li class="toctree-l2"><a class="reference internal" href="uni_redirect_rest.html#backward-compatibility">Backward compatibility</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="changes.html">Routes Changelog</a><ul>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-2-3-1-march-30-2016">Release 2.3.1 (March 30, 2016)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-2-3-march-28-2016">Release 2.3 (March 28, 2016)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-2-2-july-21-2015">Release 2.2 (July 21, 2015)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-2-1-january-17-2015">Release 2.1 (January 17, 2015)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-2-0-november-17-2013">Release 2.0 (November 17, 2013)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-13-march-12-2012">Release 1.13 (March 12, 2012)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-12-3-june-5-2010">Release 1.12.3 (June 5, 2010)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-12-2-may-5-2010">Release 1.12.2 (May 5, 2010)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-12-1-march-11-2010">Release 1.12.1 (March 11, 2010)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-12-february-28-2010">Release 1.12 (February 28, 2010)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-11-september-28-2009">Release 1.11 (September 28, 2009)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-10-3-february-8-2009">Release 1.10.3 (February 8, 2009)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-10-2-january-11-2009">Release 1.10.2 (January 11, 2009)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-10-1-september-27-2008">Release 1.10.1 (September 27, 2008)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-10-september-24-2008">Release 1.10 (September 24, 2008)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-9-2-july-8-2008">Release 1.9.2 (July 8, 2008)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-9-1-june-28-2008">Release 1.9.1 (June 28, 2008)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-9-june-12-2008">Release 1.9 (June 12, 2008)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-8-march-28-2008">Release 1.8 (March 28, 2008)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-7-3-may-28th-2008">Release 1.7.3 (May 28th, 2008)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-7-2-feb-27th-2008">Release 1.7.2 (Feb. 27th, 2008)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-7-1-nov-16th-2007">Release 1.7.1 (Nov. 16th, 2007)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-7-june-8th-2007">Release 1.7 (June 8th, 2007)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-6-3-april-10th-2007">Release 1.6.3 (April 10th, 2007)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-6-2-jan-5-2007">Release 1.6.2 (Jan. 5, 2007)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-6-1-dec-29-2006">Release 1.6.1 (Dec. 29, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-6-dec-14th-2006">Release 1.6 (Dec. 14th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-5-2-oct-16th-2006">Release 1.5.2 (Oct. 16th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-5-1-oct-4th-2006">Release 1.5.1 (Oct. 4th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-5-sept-19th-2006">Release 1.5 (Sept. 19th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-4-1-sept-6th-2006">Release 1.4.1 (Sept. 6th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-4-july-21-2006">Release 1.4 (July 21, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-3-2-april-30th-2006">Release 1.3.2 (April 30th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-3-1-april-4th-2006">Release 1.3.1 (April 4th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-3-feb-25th-2006">Release 1.3 (Feb. 25th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-2-feb-17th-2006">Release 1.2 (Feb. 17th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-1-jan-13th-2006">Release 1.1 (Jan. 13th, 2006)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-0-2-dec-30th-2005">Release 1.0.2 (Dec. 30th, 2005)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-0-1-dec-18th-2005">Release 1.0.1 (Dec. 18th, 2005)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#release-1-0-nov-21st-2005">Release 1.0 (Nov. 21st, 2005)</a></li>
</ul>
</li>
</ul>
</div>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="glossary.html">Glossary</a></li>
<li class="toctree-l1"><a class="reference internal" href="porting.html">Porting Routes to a WSGI Web Framework</a></li>
</ul>
</div>
</div>
<div class="section" id="indices-and-tables">
<h2>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></li>
<li><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></li>
<li><a class="reference internal" href="glossary.html#glossary"><span class="std std-ref">Glossary</span></a></li>
</ul>
<div class="section" id="module-listing">
<h3>Module Listing<a class="headerlink" href="#module-listing" title="Permalink to this headline"></a></h3>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="modules/index.html">Routes Modules</a><ul>
<li class="toctree-l2"><a class="reference internal" href="modules/routes.html"><code class="docutils literal"><span class="pre">routes</span></code> &#8211; Routes Common Classes and Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="modules/mapper.html"><code class="docutils literal"><span class="pre">routes.mapper</span></code> &#8211; Mapper and Sub-Mapper</a></li>
<li class="toctree-l2"><a class="reference internal" href="modules/route.html"><code class="docutils literal"><span class="pre">routes.route</span></code> &#8211; Route</a></li>
<li class="toctree-l2"><a class="reference internal" href="modules/middleware.html"><code class="docutils literal"><span class="pre">routes.middleware</span></code> &#8211; Routes WSGI Middleware</a></li>
<li class="toctree-l2"><a class="reference internal" href="modules/util.html"><code class="docutils literal"><span class="pre">routes.util</span></code> &#8211; URL Generator and utility functions</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="#">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Routes Documentation</a><ul>
<li><a class="reference internal" href="#installing">Installing</a></li>
<li><a class="reference internal" href="#example">Example</a></li>
<li><a class="reference internal" href="#source">Source</a></li>
<li><a class="reference internal" href="#bugs-support">Bugs/Support</a></li>
<li><a class="reference internal" href="#documentation">Documentation</a><ul>
</ul>
</li>
<li><a class="reference internal" href="#indices-and-tables">Indices and tables</a><ul>
<li><a class="reference internal" href="#module-listing">Module Listing</a></li>
</ul>
</li>
</ul>
</li>
</ul>

  <h4>Next topic</h4>
  <p class="topless"><a href="introduction.html"
                        title="next chapter">Introduction</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/index.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="introduction.html" title="Introduction"
             >next</a> |</li>
        <li class="nav-item nav-item-0"><a href="#">Routes 2.3.1 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &copy; Copyright 2005-2016, Ben Bangert, Mike Orr, and numerous contributers.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.5.
    </div>
  </body>
</html>