Re: running a controller method outside wsgi app

2009-01-20 Thread Wichert Akkerman
Previously Roberto Allende wrote: Wichert Akkerman escribió: Previously Dalius Dobravolskas wrote: Hello, On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote: My motivation is to write a unit testing but even in other cases it could have sense to

Re: running a controller method outside wsgi app

2009-01-19 Thread Wichert Akkerman
Previously Dalius Dobravolskas wrote: On Mon, Jan 19, 2009 at 9:34 AM, Wichert Akkerman wich...@wiggy.net wrote: Previously Dalius Dobravolskas wrote: Hello, On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote: My motivation is to write a unit testing

Re: running a controller method outside wsgi app

2009-01-19 Thread Dalius Dobravolskas
On Mon, Jan 19, 2009 at 10:18 AM, Wichert Akkerman wich...@wiggy.netwrote: I run the controller method in isolation, which means: - no other middleware that influences the result - I can put stuf in c before I call the controller method, and introspect c afterwards - no paste.fixture or

Re: running a controller method outside wsgi app

2009-01-19 Thread Roberto Allende
Wichert Akkerman escribió: Previously Dalius Dobravolskas wrote: Hello, On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote: My motivation is to write a unit testing but even in other cases it could have sense to use a controller function isolated. Or at

running a controller method outside wsgi app

2009-01-18 Thread Roberto Allende
Hello I would like to run a controller method outside a wsgi app and i'm getting TypeError: No object (name: C) has been registered for this thread That method uses the pylons variable c and when it is used, in a piece of code like c.title = page.title it raises the exception. I tried using

Re: running a controller method outside wsgi app

2009-01-18 Thread Dalius Dobravolskas
Hello, On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote: My motivation is to write a unit testing but even in other cases it could have sense to use a controller function isolated. Or at least in my case, this is the only restriction. If your intention is unit-testing

Re: running a controller method outside wsgi app

2009-01-18 Thread Wichert Akkerman
Previously Dalius Dobravolskas wrote: Hello, On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote: My motivation is to write a unit testing but even in other cases it could have sense to use a controller function isolated. Or at least in my case, this is the only

Re: running a controller method outside wsgi app

2009-01-18 Thread Dalius Dobravolskas
On Mon, Jan 19, 2009 at 9:34 AM, Wichert Akkerman wich...@wiggy.net wrote: Previously Dalius Dobravolskas wrote: Hello, On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote: My motivation is to write a unit testing but even in other cases it could have sense to