I really want to see routes in the application folder. Routes in the past
was hard to follow, now I think the work of Johnatan make it more easy. But
when you have many applications, the routes for all is a bit messy. I don't
know if this can be done:

For example a simple case:

Main routes.py:
---------------

Domain Application
---------------------------------
www.domain1.com domain1
www.domain2.com domain2



Aplication:  applications/domain1/routes.py:
-------------------------------------------


[routes In]
In Out
----------------------------------
/favicon.ico /static/favicon.ico


[routes Out]
In Out
----------------------------------
default/index /
plugin_i2p/view/333 /view/333


2011/3/24 VP <[email protected]>

> Noticing the version of web2py keeps interestingly increasing to 2.0,
> I think this is something Massimo might want to spend sometime
> thinking about.
>
> As I understand it, because of "exec", controllers are called *after*
> the request arrives.  This allows web2py to do a few interesting
> things that other frameworks can't.
>
> On the other hands, this is an example that shows an advantage of
> being able to manipulate controllers (concisely) *before* the request
> arrives.
>
> I found myself constantly type checking controller arguments (e.g.
> making sure an "id" is a number).  This is another example where being
> able to specify a certain syntax to the URL is very helpful.
>
>


-- 
Pablo Martín Mulone ([email protected])
http://www.tecnodoc.com.ar/

My blog: http://martin.tecnodoc.com.ar
Expert4Solution Profile:
http://www.experts4solutions.com/e4s/default/expert/6

Reply via email to