Ticket #2473 (closed defect: duplicate)
fresh tg2 installation and using tw.dojo is not possible
| Reported by: | diefans | Owned by: | Chris Arndt |
|---|---|---|---|
| Priority: | high | Milestone: | 2.1rc1 |
| Component: | tg-admin (non-toolbox) | Version: | 2.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I am trying to run Turbogears 2 together with tw.dojo without success.
I am getting different errors on different toscawidget versions.
for toscawidgets 0.9.7.1
URL: http://dev/admin/users/ File '/home/olli/tests/tg2env/lib/python2.5/site-packages/WebError-0.10.1-py2.5.egg/weberror/evalexception.py', line 431 in respond app_iter = self.application(environ, detect_start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/configuration.py', line 655 in wrapper return app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/configuration.py', line 555 in remover return app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/repoze.tm2-1.0a4-py2.5.egg/repoze/tm/__init__.py', line 19 in __call__ result = self.application(environ, save_status_and_headers) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/repoze.who-1.0.15-py2.5.egg/repoze/who/middleware.py', line 107 in __call__ app_iter = app(environ, wrapper.wrap_start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/ToscaWidgets-0.9.7.1-py2.5.egg/tw/core/middleware.py', line 36 in __call__ return self.wsgi_app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/ToscaWidgets-0.9.7.1-py2.5.egg/tw/core/middleware.py', line 59 in wsgi_app resp = req.get_response(self.application) File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1325 in get_response File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1293 in call_application File '/home/olli/tests/tg2env/lib/python2.5/site-packages/ToscaWidgets-0.9.7.1-py2.5.egg/tw/core/resource_injector.py', line 67 in _injector resp = req.get_response(app) File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1325 in get_response File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1293 in call_application File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Beaker-1.3-py2.5.egg/beaker/middleware.py', line 81 in __call__ return self.app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Beaker-1.3-py2.5.egg/beaker/middleware.py', line 160 in __call__ return self.wrap_app(environ, session_start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Routes-1.10.3-py2.5.egg/routes/middleware.py', line 130 in __call__ response = self.app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/wsgiapp.py', line 124 in __call__ controller = self.resolve(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/wsgiapp.py', line 263 in resolve return self.find_controller(controller) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/wsgiapp.py', line 38 in find_controller __import__(full_module_name) File '/home/olli/tests/tg2env/tgtest/tgtest/controllers/root.py', line 6 in <module> from catwalk.tg2 import Catwalk File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Catwalk-2.0.2-py2.5.egg/catwalk/tg2/__init__.py', line 1 in <module> from controller import Catwalk File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Catwalk-2.0.2-py2.5.egg/catwalk/tg2/controller.py', line 13 in <module> from tgext.admin import AdminController File 'build/bdist.linux-x86_64/egg/tgext/admin/__init__.py', line 1 in <module> File 'build/bdist.linux-x86_64/egg/tgext/admin/controller.py', line 10 in <module> File 'build/bdist.linux-x86_64/egg/tgext/crud/__init__.py', line 1 in <module> File 'build/bdist.linux-x86_64/egg/tgext/crud/controller.py', line 19 in <module> File '/home/olli/tests/tg2env/lib/python2.5/site-packages/tw.dojo-0.9.8.1-py2.5.egg/tw/dojo/__init__.py', line 1 in <module> from core import * File '/home/olli/tests/tg2env/lib/python2.5/site-packages/tw.dojo-0.9.8.1-py2.5.egg/tw/dojo/core.py', line 105 in <module> dojo_js = DojoLink(basename='dojo/dojo') File '/home/olli/tests/tg2env/lib/python2.5/site-packages/ToscaWidgets-0.9.7.1-py2.5.egg/tw/core/util.py', line 133 in wrapper output = func(self, *args, **kw) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/tw.dojo-0.9.8.1-py2.5.egg/tw/dojo/core.py', line 39 in __init__ self, modname, self.filename TypeError: register() takes exactly 3 arguments (4 given)
for toscawidgets 0.9.9
URL: http://dev/admin/users/ File '/home/olli/tests/tg2env/lib/python2.5/site-packages/WebError-0.10.1-py2.5.egg/weberror/evalexception.py', line 431 in respond app_iter = self.application(environ, detect_start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/configuration.py', line 655 in wrapper return app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/configuration.py', line 555 in remover return app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/repoze.tm2-1.0a4-py2.5.egg/repoze/tm/__init__.py', line 19 in __call__ result = self.application(environ, save_status_and_headers) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/repoze.who-1.0.15-py2.5.egg/repoze/who/middleware.py', line 107 in __call__ app_iter = app(environ, wrapper.wrap_start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/ToscaWidgets-0.9.9-py2.5.egg/tw/core/middleware.py', line 43 in __call__ return self.wsgi_app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/ToscaWidgets-0.9.9-py2.5.egg/tw/core/middleware.py', line 68 in wsgi_app resp = req.get_response(self.application) File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1325 in get_response File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1293 in call_application File '/home/olli/tests/tg2env/lib/python2.5/site-packages/ToscaWidgets-0.9.9-py2.5.egg/tw/core/resource_injector.py', line 68 in _injector resp = req.get_response(app) File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1325 in get_response File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1293 in call_application File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Beaker-1.3-py2.5.egg/beaker/middleware.py', line 81 in __call__ return self.app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Beaker-1.3-py2.5.egg/beaker/middleware.py', line 160 in __call__ return self.wrap_app(environ, session_start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Routes-1.10.3-py2.5.egg/routes/middleware.py', line 130 in __call__ response = self.app(environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/wsgiapp.py', line 125 in __call__ response = self.dispatch(controller, environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/wsgiapp.py', line 324 in dispatch return controller(environ, start_response) File '/home/olli/tests/tg2env/tgtest/tgtest/lib/base.py', line 32 in __call__ return TGController.__call__(self, environ, start_response) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 221 in __call__ response = self._dispatch_call() File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 172 in _dispatch_call response = self._inspect_call(func) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 107 in _inspect_call result = self._perform_call(func, args) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/controllers.py', line 857 in _perform_call self, controller, params, remainder=remainder) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/controllers.py', line 172 in _perform_call output = controller(*remainder, **dict(params)) File '<string>', line 2 in _w File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/decorators.py', line 560 in with_trailing_slash return func(*args, **kwargs) File '/home/olli/tests/tg2env/lib/python2.5/site-packages/TurboGears2-2.0.3-py2.5.egg/tg/decorators.py', line 493 in _w c.paginators[name] = page TypeError: 'NoneType' object does not support item assignment
with a fresh turbogears 2.1 installation I get at least no exception, but the dojo grid is not visible (see screenshot)
Attachments
Change History
comment:1 Changed 2 years ago by diefans
for the 2.1 installation I can fix the invisible dojo grid by adding the following to style.css:
.dojoxGrid {
height: 100%;
}
comment:2 Changed 19 months ago by diegows
- Priority changed from normal to high
- Owner changed from mbertoldi to Chris Arndt
- Version changed from 2.0.3 to 2.1
- Component changed from tgDojo to tg-admin (non-toolbox)
Same bug here. Tried with 2.0 and I've got the same exception. Same sympton with tg2.1b2 and fixed with diafans' solution.
Note: See
TracTickets for help on using
tickets.
