Page handler: <function _wrapper at 0xa86609c>
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/cherrypy/_cphttptools.py", line 105, in _run
self.main()
File "/usr/lib/python2.5/site-packages/cherrypy/_cphttptools.py", line 254, in main
body = page_handler(*virtual_path, **self.params)
File "/home/ondrejj/tmp/python/TurboGears-1.0.4b3-py2.5.egg/turbogears/identity/conditions.py", line 275, in _wrapper
return fn( *args, **kw )
File "<string>", line 3, in index
File "/home/ondrejj/tmp/python/TurboGears-1.0.4b3-py2.5.egg/turbogears/controllers.py", line 344, in expose
*args, **kw)
File "<string>", line 5, in run_with_transaction
File "/home/ondrejj/tmp/python/TurboGears-1.0.4b3-py2.5.egg/turbogears/database.py", line 406, in sa_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/home/ondrejj/tmp/python/TurboGears-1.0.4b3-py2.5.egg/turbogears/controllers.py", line 359, in <lambda>
mapping, fragment, args, kw)))
File "/home/ondrejj/tmp/python/TurboGears-1.0.4b3-py2.5.egg/turbogears/controllers.py", line 386, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "/home/ondrejj/tmp/python/TurboGears-1.0.4b3-py2.5.egg/turbogears/errorhandling.py", line 72, in try_call
return func(self, *args, **kw)
File "<string>", line 3, in index
File "/home/ondrejj/tmp/python/TurboGears-1.0.4b3-py2.5.egg/turbogears/paginate.py", line 203, in decorated
page_count = int(ceil(float(row_count)/limit_))
When no results returned row_count may be "None" and this row fails. I suggest to update this row at least this way: