Re: [PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-23 Thread Thomas De Schampheleire
On Thu, Apr 23, 2015 at 10:28 PM, Mads Kiilerich wrote: > On 04/23/2015 10:00 PM, Thomas De Schampheleire wrote: >> >> On Mon, Apr 20, 2015 at 11:28 PM, Mads Kiilerich >> wrote: >>> >>> # HG changeset patch >>> # User Mads Kiilerich >>> # Date 1429565291 -7200 >>> # Mon Apr 20 23:28:11 2015

Re: [PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-23 Thread Mads Kiilerich
On 04/23/2015 10:00 PM, Thomas De Schampheleire wrote: On Mon, Apr 20, 2015 at 11:28 PM, Mads Kiilerich wrote: # HG changeset patch # User Mads Kiilerich # Date 1429565291 -7200 # Mon Apr 20 23:28:11 2015 +0200 # Node ID fcfd593347c8240544996f5516113595c0ff390a # Parent 7e5a0c784880bf8da

Re: [PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-23 Thread Thomas De Schampheleire
On Mon, Apr 20, 2015 at 11:28 PM, Mads Kiilerich wrote: > # HG changeset patch > # User Mads Kiilerich > # Date 1429565291 -7200 > # Mon Apr 20 23:28:11 2015 +0200 > # Node ID fcfd593347c8240544996f5516113595c0ff390a > # Parent 7e5a0c784880bf8da968710948f3aa617403bf5a > hacks: the concept o

Re: [PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-21 Thread Mads Kiilerich
On 04/21/2015 10:18 AM, Thomas De Schampheleire wrote: On Tue, Apr 21, 2015 at 3:05 PM, Mads Kiilerich wrote: On 04/21/2015 06:34 AM, Thomas De Schampheleire wrote: +import imp import logging import kallithea import platform @@ -43,12 +45,25 @@ from kallithea.model.scm import ScmMod

Re: [PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-21 Thread Thomas De Schampheleire
On Tue, Apr 21, 2015 at 3:05 PM, Mads Kiilerich wrote: > On 04/21/2015 06:34 AM, Thomas De Schampheleire wrote: >> >> >>> +import imp >>> import logging >>> import kallithea >>> import platform >>> @@ -43,12 +45,25 @@ from kallithea.model.scm import ScmModel >>> log = logging.getLogger(__n

Re: [PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-21 Thread Mads Kiilerich
On 04/21/2015 06:34 AM, Thomas De Schampheleire wrote: +import imp import logging import kallithea import platform @@ -43,12 +45,25 @@ from kallithea.model.scm import ScmModel log = logging.getLogger(__name__) +def load_hacks(): +""" +Load hacks - python files dropped in kalli

Re: [PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-21 Thread Andrew Shadura
Hehe, I have once built a similar thing for my unfinished OpenStreetMap editor, but in Tcl :) -- Cheers, Andrew ___ kallithea-general mailing list kallithea-general@sfconservancy.org http://lists.sfconservancy.org/mailman/listinfo/kallithea-general

Re: [PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-21 Thread Thomas De Schampheleire
On Mon, Apr 20, 2015 at 11:28 PM, Mads Kiilerich wrote: > # HG changeset patch > # User Mads Kiilerich > # Date 1429565291 -7200 > # Mon Apr 20 23:28:11 2015 +0200 > # Node ID fcfd593347c8240544996f5516113595c0ff390a > # Parent 7e5a0c784880bf8da968710948f3aa617403bf5a > hacks: the concept o

[PATCH PoC] hacks: the concept of python files that will be loaded and can monkeypatch Kallithea internals

2015-04-20 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1429565291 -7200 # Mon Apr 20 23:28:11 2015 +0200 # Node ID fcfd593347c8240544996f5516113595c0ff390a # Parent 7e5a0c784880bf8da968710948f3aa617403bf5a hacks: the concept of python files that will be loaded and can monkeypatch Kallithea inter