On Saturday, July 13, 2013 5:47:32 AM UTC-4, step wrote: > Incidentally, Anthony why did you use request.args[-3] instead of > request.args[0]? What's the reasoning behind the negative index idiom that > I see in use throughout the gluon files? >
It is possible that links to an action that returns a grid could include their own URL args that appear before the grid args (you would tell the grid about these args via the "args" argument to the grid). In that case, it is better to count the args starting at the right end of the URL so you don't have to adjust for the non-grid args that may be to the left. Anthony -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

