Re: Turbogears2 migration: API calls

2016-09-18 Thread Alessandro Molina
On Sat, Jul 30, 2016 at 10:01 PM, Thomas De Schampheleire < patrickdeping...@gmail.com> wrote: > Hi, > > API calls currently do not work under Turbogears2. > > The simplest call is: > > ../venv/kallithea-tg-clean/bin/kallithea-api > --apikey=811a4ad6f382e75c20392b668cad9408bde9f42e >

Re: Turbogears2 migration: API calls

2016-08-29 Thread Alessandro Molina
On Mon, Aug 29, 2016 at 10:44 AM, Thomas De Schampheleire < patrickdeping...@gmail.com> wrote: > > > > - Routing, Kallithea is probably the only TG2 app using routes as the > core > > dispatch system. This is probably not going away unless all controllers > are > > rewritten using

Re: Turbogears2 migration: API calls

2016-08-29 Thread Thomas De Schampheleire
On Mon, Aug 29, 2016 at 10:15 AM, Alessandro Molina wrote: >> So the routing tries to access an index method. >> >> In the API code, the JSONRPCController parent class of ApiController >> is supposed to direct the calls to the correct method, but it seems we >> do not

Re: Turbogears2 migration: API calls

2016-08-29 Thread Alessandro Molina
> > So the routing tries to access an index method. > > In the API code, the JSONRPCController parent class of ApiController > is supposed to direct the calls to the correct method, but it seems we > do not enter that class. > > JSONRPCController needs to be able to implement his own routing and

Re: Turbogears2 migration: API calls

2016-08-25 Thread Alessandro Molina
On Mon, Aug 22, 2016 at 8:06 PM, Thomas De Schampheleire < patrickdeping...@gmail.com> wrote: > Hi Alessandro, > > This is a gentle reminder in case you missed this mail, > Sorry, yep I missed that, have been a few superbusy months at work and I have been unable to follow open source projects as

Re: Turbogears2 migration: API calls

2016-08-22 Thread Mads Kiilerich
On 07/30/2016 10:01 PM, Thomas De Schampheleire wrote: line 119, in __call__ response = self._perform_call(context) File "/home/tdescham/repo/contrib/kallithea/venv/kallithea-tg-clean/lib/python2.7/site-packages/tg/controllers/dispatcher.py", line 99, in _perform_call state =

Re: Turbogears2 migration: API calls

2016-08-22 Thread Thomas De Schampheleire
Hi Alessandro, On Sat, Jul 30, 2016 at 10:01 PM, Thomas De Schampheleire wrote: > Hi, > > API calls currently do not work under Turbogears2. > > The simplest call is: > > ../venv/kallithea-tg-clean/bin/kallithea-api > --apikey=811a4ad6f382e75c20392b668cad9408bde9f42e

Turbogears2 migration: API calls

2016-07-30 Thread Thomas De Schampheleire
Hi, API calls currently do not work under Turbogears2. The simplest call is: ../venv/kallithea-tg-clean/bin/kallithea-api --apikey=811a4ad6f382e75c20392b668cad9408bde9f42e --apihost=http://localhost:5000 test (where apikey can be obtained from the web UI, after logging in, going to 'My