What's the problem with this piece of code: <td>Tot. articoli</td> {{tot=x._extra[db.articles.quantity.sum()]}} {{if tot==None: tot="-----"}} <td style="text-align:center">{{=tot}}</td>
It gives me this error: Traceback (most recent call last): File "/home/pmate/software/web2py/gluon/restricted.py", line 62, in restricted File "/home/pmate/opt/web2py/applications/myapp/views/default/ display_articles.html", line 55, in <module> <td style="text-align:center">{{=article.quantity}}</td> KeyError: <gluon.sql.SQLXorable object at 0x92827ac> If i remove those lines the html page works perfectly. I don't know if it depends on upgrading of web2py (i do not think so) but after upgrade it stopped working. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---