thank you!

On Aug 10, 4:17 am, Marin Pranjic <[email protected]> wrote:
> If you have an URL like:
>
> http://www.domain.com/application/controller/function/*arg1/arg2/arg3...
> ?var1=1&var2=2&var3=3...
>
> Then request.args contains: ['arg1', 'arg2', 'arg3', 'arg4']
>
> You can access those strings with: request.args(2) or request.args[2], first
> is better because it will return None instead of exception if index does not
> exist
> in this example request.args(2) will return string 'arg3'
>
> var1, var2 and var3 are stored in request.get_vars and request.vars
>
> accessible with: request.vars.var1, request.vars.var2 etc.
>
> request.args() without arguments does nothing:
> TypeError: __call__() takes at least 2 arguments (1 given)
>
> Marin
>
>
>
>
>
>
>
> On Wed, Aug 10, 2011 at 9:51 AM, Jared Stunn <[email protected]> wrote:
> > This is from the docs:
>
> > "A list of the URL path components following the controller function
> > name; equivalent to request.env.path_info.split('/')[3:]"
>
> > After reading im still unsure. Can somebody please explain simpler
> > what is does? An example would be helpful as well.

Reply via email to