Re: [web2py] Re: URL of an external website

2014-03-29 Thread Jonathan Lundell
On 29 Mar 2014, at 5:04 AM, villas wrote: > My point was simply this: if I set a='myapp' I would expect 'myapp' to > replace the appname from r or anywhere else. > This behaviour also caused difficulty for the OP. > I just mentioned it in case it was a bug. Thanks for commenting. Sadly, it

[web2py] Re: URL of an external website

2014-03-29 Thread villas
@Niphlod My point was simply this: if I set a='myapp' I would expect 'myapp' to replace the appname from r or anywhere else. This behaviour also caused difficulty for the OP. I just mentioned it in case it was a bug. Thanks for commenting. -- Resources: - http://web2py.com - http://web2py.

[web2py] Re: URL of an external website

2014-03-28 Thread Niphlod
its expected if you don't pass the request argument (as the URL() was originally written). basically, URL() "behaves" with a,c,f consistently only if you pass r=request, else, a c and f are just "positional", and missing pieces are set on current request. On Friday, March 28, 2014 5:15:59 PM U

[web2py] Re: URL of an external website

2014-03-28 Thread villas
*Hi Louis >>> URL(a='a',c='c',f='f')'/a/c/f'>>> URL(a='a',c=' ',f=' ')'/a/ / '>>> URL(a='a')'/APPNAME/a'>>> URL(a='a',c='',f='')'/APPNAME/a'In the last two commands, APPNAME appears. Why? That's looks like a bug.@Jonathan, I cannot see why URL() cannot generate extern

[web2py] Re: URL of an external website

2014-03-28 Thread villas
@Massimo, Regarding > *>>> URL(a='a')* > *'/APPNAME/a'* > *>>> URL(a='a',c='c')* > *'/APPNAME/a/c'* > ... may be 'unspecified', but it is still unexpected and confusing. In the latter case, the 'a' becomes the controller and the 'c' the function. @Jonathan, Re: external urls. I see, than

[web2py] Re: URL of an external website

2014-03-28 Thread Massimo Di Pierro
URL('function') -> ///function URL('controller','function') -> //controller/function URL('myapp','controller','function') -> /myapp/controller/function You are specifying an appname (a) but no controller nor function. I believe that behavior is unspecified. On Friday, 28 March 2014 08:35:39 U

Re: [web2py] Re: URL of an external website

2014-03-28 Thread Jonathan Lundell
On 28 Mar 2014, at 6:35 AM, villas wrote: > >>> URL(a='a',c='c',f='f') > '/a/c/f' > > >>> URL(a='a',c=' ',f=' ') > '/a/ / ' > > >>> URL(a='a') > '/APPNAME/a' > > >>> URL(a='a',c='',f='') > '/APPNAME/a' > > > In the last two commands, APPNAME appears. Why? That's looks like a bug. > > @Jon