ohhhhhhh my.....................

how can you even suppose someone is going to read throughout all the code 
to find the culprit ? That's the most unpythonic, repeating template page 
I've ever seen. Remember that that code will be read more than written, and 
that's going to be a problem to your eyes mostly.

BTW: Fastest and dumbest method to track all kinds of issues (AKA "bisect 
to the rescue"):
1) cut down the page to the half, see if you get your traceback
2) if yes, you didn't cut the piece raising the issue. return to 1) 
3) if no, readd the cutted half, cut the half of the half you reinserted 
(i.e. the "last quarter"). Does it still raise a traceback ? return to 3)
4) if no, you found the code raising the issue

Scientifically proven, in about 10 iterations you'll cover even hundreds of 
lines of hurting code.

Anyway..........the error is quite simple, and if you took care of actually 
reading it, you would have spotted right away

{{=SPAN(A(I(_class = 'icon-chevron-left'), T('Previous'), _title = 
T('Previous Page'), 
  _href = URL(vars = dict(request.vars, page = [page - 1]) ) ) ) }}

you can't instantiate a dict like that.  

tl;dr: this is the last time I'll help on more than 50 lines of code to 
inspect.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to