I updated from svn this morning and ran into this strange bug. I'm
using the new widgets via widgets.use_new_widgets() and the
newfastdata.DataController set up like this.
permissions = DataController(sql_class=Permission)
Note that this bug does not seem to be related to the new widgets
because it occures also using the old widgets.
Part of the traceback:
File
"/home/randall/downloads/svn/turbogears/turbogears/controllers.py",
line 196, in _execute_func
output = errorhandling.try_call(func, self, *args, **kw)
File
"/home/randall/downloads/svn/turbogears/turbogears/errorhandling.py",
line 60, in try_call
raise error
TypeError: 'NoneType' object is not callable
Here is the strange part. It only happens when I try to access the
'edit' form or 'add new' form AFTER I have edited or added a record.
Once I have edited or added a record, attempts to edit or add another
record throw this exception even if I go back to the datagrid or
elsewhere. What seems strange to me is that I thought the process
should be stateless, yet the bug is state dependent. If someone can
explain what is happening here, I sure would be interested.
Randall