[web2py] Re: URL filter chain

2013-08-07 Thread Marcio Andrey Oliveira
Thank you all. That will solve what I want to do. Best regards. On Monday, August 5, 2013 11:15:59 PM UTC-3, Marcio Andrey Oliveira wrote: > > Hi. > > In Java there is the concept of URL filter chain (implemented by one or > more servlets). These filters may intercept requests to a specif URL o

[web2py] Re: URL filter chain

2013-08-06 Thread Anthony
Model files are executed on every request before the controller action is called, so you could simply put your code in a model file (note, most of the code could actually go in a module, which you could then simply import in a model). Models are executed in alphabetical order, so if you want you

Re: [web2py] Re: URL filter chain

2013-08-06 Thread Vinicius Assef
See this old thread: https://groups.google.com/forum/#!topic/web2py/vW4ygi96LLU It may help you. On Tue, Aug 6, 2013 at 9:24 PM, Marcio Andrey Oliveira wrote: > So I don't know what to do. I was reading about the conditional models but > it doesn't seem to be what I want. > > I will try to expla

[web2py] Re: URL filter chain

2013-08-06 Thread Marcio Andrey Oliveira
So I don't know what to do. I was reading about the conditional models but it doesn't seem to be what I want. I will try to explain (forgive my bad English): >From my own application I want to be able to intercept requests to some / all URLs (it varies based on what I want to do) so that I coul

[web2py] Re: URL filter chain

2013-08-06 Thread Massimo Di Pierro
yes On Tuesday, 6 August 2013 07:14:34 UTC-5, Anthony wrote: > > > > On Tuesday, August 6, 2013 3:13:48 AM UTC-4, Massimo Di Pierro wrote: >> >> The wsgi middleware is really not the web2py way of doing this. It is a >> compatibility mode of allowing third party middleware of interoperating >>

[web2py] Re: URL filter chain

2013-08-06 Thread Anthony
On Tuesday, August 6, 2013 3:13:48 AM UTC-4, Massimo Di Pierro wrote: > > The wsgi middleware is really not the web2py way of doing this. It is a > compatibility mode of allowing third party middleware of interoperating > with web2py. It has only been tested in simple cases. It was recently >

[web2py] Re: URL filter chain

2013-08-06 Thread Massimo Di Pierro
The wsgi middleware is really not the web2py way of doing this. It is a compatibility mode of allowing third party middleware of interoperating with web2py. It has only been tested in simple cases. It was recently rewritten (untested) nobody uses it, and I am considering dropping the feature.

[web2py] Re: URL filter chain

2013-08-05 Thread Marcio Andrey Oliveira
Thank you both for replying. It seems wsgi middleware fits better my needs. Regards. Em segunda-feira, 5 de agosto de 2013 23h15min59s UTC-3, Marcio Andrey Oliveira escreveu: > > Hi. > > In Java there is the concept of URL filter chain (implemented by one or > more servlets). These filters m