Hi Massimo,
Probably (and probably not) because I manually delete applications/
myapp/uploads/*.jpg, somehow I encounter an exception when gonna
display a crud.update(...) form.
The error traceback:
......
File "C:\DOWNLOAD\google_appengine\web2py\gluon\html.py", line 452,
in _traverse
newstatus = c._traverse(status) and newstatus
File "C:\DOWNLOAD\google_appengine\web2py\gluon\html.py", line 452,
in _traverse
newstatus = c._traverse(status) and newstatus
File "C:\DOWNLOAD\google_appengine\web2py\gluon\html.py", line 452,
in _traverse
newstatus = c._traverse(status) and newstatus
TypeError: 'NoneType' object is not callable
Then I add some logging before gluon.py/html.py line 452, and see:
WARNING:root:c=<tr id="crude_products_sold_crude_oid__row"><td><label
for="crude_products_sold_crude_oid"
id="crude_products_sold_crude_oid__label">Crude Oid: </label></
td><td>3</td><td></td></tr>, c._traverse=<bound method TR._traverse
of<gluon.html.TR object at 0x0219D530>>
WARNING:root:c=<td><label for="crude_products_sold_crude_oid"
id="crude_products_sold_crude_oid__label">Crude Oid: </label></td>,
c._traverse=<bound method TD._traverse of <gluon.html.TD object at
0x0219D510>>
WARNING:root:c=<label for="crude_products_sold_crude_oid"
id="crude_products_sold_crude_oid__label">Crude Oid: </label>,
c._traverse=<bound method LABEL._traverse of <gluon.html.LABEL object
at 0x0219D4F0>>
WARNING:root:c=<td>3</td>, c._traverse=<bound method TD._traverse of
<gluon.html.TD object at 0x0219D8F0>>
WARNING:root:c=3, c._traverse=None
Therefore I suggest changing line 445 of gluon/html.py from:
if hasattr(c, '_traverse'):
to:
if hasattr(c, '_traverse') and c._traverse is not None:
At least it won't break anything else.
Regards,
Iceberg
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
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.