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
@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.
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
*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
@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
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
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
7 matches
Mail list logo