[PATCH] codemirror: fix model when using proxy prefix issue #160

Mads Kiilerich mads at kiilerich.com
Fri Sep 18 17:04:21 UTC 2015


On 09/17/2015 10:49 PM, Christian Oyarzun wrote:
> # HG changeset patch
> # User Christian Oyarzun <oyarzun at gmail.com <mailto:oyarzun at gmail.com>>
> # Date 1442522796 14400
> #      Thu Sep 17 16:46:36 2015 -0400
> # Node ID b10f6c0a01fce20452947caf45d661a4ed101ce5
> # Parent  889ff0f436c8b57f5962e204e699cbabc6d33aac
> codemirror: fix model when using proxy prefix issue #160

We have other places in base.js where we use pyroutes.url to create URLs 
to "controllers" defined in root.html . I think we should do the same 
for this purpose.

Instead of overloading 'home', I think we should add a 'static_files' 
routing and make it something like

CodeMirror.modeURL = pyroutes.url('static_files'') + 
"/codemirror/mode/%N/%N.js";

Would that work?

/Mads

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20150918/ee9f7c0d/attachment-0001.html>


More information about the kallithea-general mailing list