<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 09/18/2015 08:12 PM, Christian
      Oyarzun wrote:<br>
    </div>
    <blockquote
cite="mid:CAMEMbDrr3H2mRCGCwQ+SpZ-azzgDed==-0vYgkcOYz4dB_y+YA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div># HG changeset patch</div>
        <div># User Christian Oyarzun <<a moz-do-not-send="true"
            href="mailto:oyarzun@gmail.com">oyarzun@gmail.com</a>></div>
        <div># Date 1442599888 14400</div>
        <div>#      Fri Sep 18 14:11:28 2015 -0400</div>
        <div># Node ID 3033e182787ede6bda4a6ad87e9795dbd2e82a2f</div>
        <div># Parent  889ff0f436c8b57f5962e204e699cbabc6d33aac</div>
        <div>codemirror: fix model when using proxy prefix issue #160</div>
        <div><br>
        </div>
        <div>diff --git a/kallithea/config/routing.py
          b/kallithea/config/routing.py</div>
        <div>--- a/kallithea/config/routing.py</div>
        <div>+++ b/kallithea/config/routing.py</div>
        <div>@@ -99,6 +99,7 @@</div>
        <div>   
 #==========================================================================</div>
        <div> </div>
        <div>     #MAIN PAGE</div>
        <div>+    rmap.connect('static_files', '/', _static=True)</div>
      </div>
    </blockquote>
    <br>
    Why does _static mean here? Why is it needed for this but not for
    others?<br>
    <br>
    <blockquote
cite="mid:CAMEMbDrr3H2mRCGCwQ+SpZ-azzgDed==-0vYgkcOYz4dB_y+YA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>     rmap.connect('home', '/', controller='home',
          action='index')</div>
        <div>     rmap.connect('about', '/about', controller='home',
          action='about')</div>
        <div>     rmap.connect('repo_switcher_data', '/_repos',
          controller='home',</div>
        <div>diff --git a/kallithea/public/js/base.js
          b/kallithea/public/js/base.js</div>
        <div>--- a/kallithea/public/js/base.js</div>
        <div>+++ b/kallithea/public/js/base.js</div>
        <div>@@ -903,7 +903,7 @@</div>
        <div>             indentUnit: 4,</div>
        <div>             autofocus: true</div>
        <div>         });</div>
        <div>-    CodeMirror.modeURL = "/codemirror/mode/%N/%N.js";</div>
        <div>+    CodeMirror.modeURL = pyroutes.url('static_files') +
          "codemirror/mode/%N/%N.js";</div>
        <div> </div>
        <div>     $('#reset').click(function(e){</div>
        <div>             window.location=resetUrl;</div>
        <div>diff --git a/kallithea/templates/admin/gists/edit.html
          b/kallithea/templates/admin/gists/edit.html</div>
        <div>--- a/kallithea/templates/admin/gists/edit.html</div>
        <div>+++ b/kallithea/templates/admin/gists/edit.html</div>
        <div>@@ -81,6 +81,7 @@</div>
        <div> </div>
        <div>                 ## dynamic edit box.</div>
        <div>                 <script type="text/javascript"></div>
        <div>+                pyroutes.register('static_files',
          "${h.url('static_files')}", []);</div>
      </div>
    </blockquote>
    <br>
    Why not put it in root.html with (most) other pyroutes
    registrations?<br>
    <br>
    /Mads<br>
    <br>
  </body>
</html>