[web2py] Re: RFC: new URL routing facility

2011-01-02 Thread villas
Well, say I make a plugin which I want to link back to a function in my default_controller. I would not wish to to make my link like this URL('default','func'), but like this URL(default_controller,'func'). See what I mean? On Jan 2, 2:09 am, Jonathan Lundell jlund...@pobox.com wrote: On Jan 1,

Re: [web2py] Re: RFC: new URL routing facility

2011-01-02 Thread Jonathan Lundell
On Jan 2, 2011, at 5:54 AM, villas wrote: Well, say I make a plugin which I want to link back to a function in my default_controller. I would not wish to to make my link like this URL('default','func'), but like this URL(default_controller,'func'). See what I mean? Sort of. The problem is

[web2py] Re: RFC: new URL routing facility

2011-01-02 Thread villas
Hi Jonathan If the framework had such a variable I would use it. But it's a tiny issue so please don't let me further distract you from the other enhancements you are planning :-) Thanks. D On Jan 2, 3:58 pm, Jonathan Lundell jlund...@pobox.com wrote: On Jan 2, 2011, at 5:54 AM, villas wrote:

Re: [web2py] Re: RFC: new URL routing facility

2011-01-02 Thread Jonathan Lundell
On Jan 2, 2011, at 8:19 AM, villas wrote: Hi Jonathan If the framework had such a variable I would use it. But it's a tiny issue so please don't let me further distract you from the other enhancements you are planning :-) It'll be (almost) trivial to add it. I'll put it on my todo list.

[web2py] Re: RFC: new URL routing facility

2011-01-01 Thread villas
I especially like the language support which will enable consistent bookmarking of urls. This all seems very good - thanks! -D On Dec 31 2010, 10:36 pm, Jonathan Lundell jlund...@pobox.com wrote: I've been working on a new URL routing facility that provides fairly powerful rewriting with very

[web2py] Re: RFC: new URL routing facility

2011-01-01 Thread Arun K.Rajeevan
When will it be available for us to experiment. regex is always a bit difficult to maintain.

Re: [web2py] Re: RFC: new URL routing facility

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 9:25 AM, Arun K.Rajeevan wrote: When will it be available for us to experiment. regex is always a bit difficult to maintain. I hope to get a beta patch to Massimo in a few days. By beta I mean that it's not fully tested, and the API might not be final. But all the

[web2py] Re: RFC: new URL routing facility

2011-01-01 Thread villas
Hi Jonathan The 'default_controller' variable in routes.py doesn't seem to be available in the rest of the app. From where may I access that information? Or, do I have to set that variable again in as an app setting somewhere (not very DRY!). -David

Re: [web2py] Re: RFC: new URL routing facility

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 5:46 PM, villas wrote: The 'default_controller' variable in routes.py doesn't seem to be available in the rest of the app. From where may I access that information? Or, do I have to set that variable again in as an app setting somewhere (not very DRY!). I'm not sure what