0.6.2 released, keep in mind that you might still get issues if you are setting table_filler inside __init__ method of a subclass after calling parent initialization method. The controller initialization method requires all the properties to be already there when setting up things.
On Wed, Jun 26, 2013 at 10:00 PM, Alessandro Molina < [email protected]> wrote: > Thanks for reporting this, it has to do with recent change that made > pagination conditional on the current table filler. > While EasyCrudRestController sets the fillers before calling __init__ the > admin does the opposite. > > I'm going to push out a bugfix release in a bunch of minutes. > > > On Wed, Jun 26, 2013 at 5:08 PM, MHCPU <[email protected]> wrote: > >> I'm not sure where to report this. I'm running TG 2.2. A previous >> installation of my application downloaded tgext.crud-0.6.0-py2.6.egg and >> worked. However I've just done a re-installation that downloaded >> tgext.crud-0.6.1-py2.6.egg. This fails with the traceback below. Putting >> tgext.crud back to 0.6.0 fixes it. I'm not clear on what causes the >> table_flller attribute to exist in UserCrudController. >> >> Thanks for any help, >> Matthew >> >> mod_wsgi (pid=5486): Exception occurred processing WSGI script >> '/web/turbogears/fishdb/fishdb.wsgi'. >> Traceback (most recent call last): >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/cascade.py", >> line 130, in __call__ >> return self.apps[-1](environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/registry.py", >> line 379, in __call__ >> app_iter = self.application(environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/middleware.py", >> line 163, in __call__ >> self.app, new_environ, catch_exc_info=True) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/util.py", >> line 51, in call_wsgi_application >> output.extend(app_iter) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/repoze.tm2-2.0b1-py2.6.egg/repoze/tm/__init__.py", >> line 24, in __call__ >> for chunk in self.application(environ, save_status_and_headers): >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/repoze.who-1.0.18-py2.6.egg/repoze/who/middleware.py", >> line 49, in __call__ >> return self.app(environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/ToscaWidgets-0.9.12-py2.6.egg/tw/core/middleware.py", >> line 46, in __call__ >> return self.wsgi_app(environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/ToscaWidgets-0.9.12-py2.6.egg/tw/core/middleware.py", >> line 72, in wsgi_app >> resp = req.get_response(self.application) >> File "build/bdist.linux-x86_64/egg/webob/request.py", line 1086, in >> get_response >> application, catch_exc_info=False) >> File "build/bdist.linux-x86_64/egg/webob/request.py", line 1055, in >> call_application >> app_iter = application(self.environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/ToscaWidgets-0.9.12-py2.6.egg/tw/core/resource_injector.py", >> line 70, in _injector >> resp = req.get_response(app) >> File "build/bdist.linux-x86_64/egg/webob/request.py", line 1086, in >> get_response >> application, catch_exc_info=False) >> File "build/bdist.linux-x86_64/egg/webob/request.py", line 1055, in >> call_application >> app_iter = application(self.environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Beaker-1.6.3-py2.6.egg/beaker/middleware.py", >> line 73, in __call__ >> return self.app(environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Beaker-1.6.3-py2.6.egg/beaker/middleware.py", >> line 155, in __call__ >> return self.wrap_app(environ, session_start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Routes-1.13-py2.6.egg/routes/middleware.py", >> line 131, in __call__ >> response = self.app(environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/wsgiapp.py", >> line 106, in __call__ >> controller = self.resolve(environ, start_response) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/wsgiapp.py", >> line 239, in resolve >> return self.find_controller(controller) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/TurboGears2-2.2.2-py2.6.egg/tg/wsgiapp.py", >> line 41, in find_controller >> __import__(full_module_name) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/fishdb-1.1dev_r229-py2.6.egg/fishdb/controllers/root.py", >> line 77, in <module> >> class RootController(BaseController): >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/fishdb-1.1dev_r229-py2.6.egg/fishdb/controllers/root.py", >> line 93, in RootController >> user = UserCrudController(DBSession) >> File >> "/web/pythonenv/fishdb/lib/python2.6/site-packages/fishdb-1.1dev_r229-py2.6.egg/fishdb/controllers/admin.py", >> line 49, in __init__ >> super(UserCrudController, self).__init__(*args, **kw) >> File "build/bdist.linux-x86_64/egg/tgext/crud/controller.py", line >> 232, in __init__ >> self.pagination_enabled = (self.pagination and >> isinstance(self.table_filler, RequestLocalTableFiller)) >> AttributeError: 'UserCrudController' object has no attribute >> 'table_filler' >> >> -- >> You received this message because you are subscribed to the Google Groups >> "TurboGears" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/turbogears. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/groups/opt_out.

