On Mon, Jul 26, 2010 at 7:54 PM, Michael Pedersen <[email protected]> wrote: > Unfortunately, I don't remember the details as to why this is so, but > Catwalk has been (at best) problematic. Use tgext.admin instead. If you need > help getting that installed, say so, and I'll type up the directions (as you > can see, I've been doing a lot tonight, and I'm still trying to get back to > tgext.menu so I can close out a bug and a feature! :) > > On Mon, Jul 26, 2010 at 4:50 PM, waugust <[email protected]> wrote: >> >> Yeah, it does... >> >> On Jul 26, 12:24 pm, bloeper <[email protected]> wrote: >> > Does it also give you that error when you try to edit a user or a >> > permission? e.g some of the default models of TG? >> > >> > On Jul 26, 7:35 pm, waugust <[email protected]> wrote: >> > >> > >> > >> > > Greetngs, >> > >> > > I can log in and see objects to edit, though when I click on the link >> > > I get the below error. Doesn't appear that its pointing to any of my >> > > code... I'm in a virtualenv and everything else seems fine... >> > >> > > WebError Traceback: >> > > ⇝ TypeError: 'NoneType' object does not support item assignment >> > > View as: Interactive | Text | XML (full) >> > > URL:http://127.0.0.1:8080/admin/movies/ >> > > Module weberror.evalexception:431 in respond view>> app_iter >> > > = self.application(environ, detect_start_response) >> > >> > > Module tg.configuration:655 in wrapper view>> return >> > > app(environ, start_response) >> > >> > > Module tg.configuration:555 in remover view>> return >> > > app(environ, start_response) >> > >> > > Module repoze.tm:19 in __call__ view>> result = >> > > self.application(environ, save_status_and_headers) >> > >> > > Module repoze.who.middleware:107 in __call__ view>> app_iter >> > > = app(environ, wrapper.wrap_start_response) >> > >> > > Module tw.core.middleware:43 in __call__ view>> return >> > > self.wsgi_app(environ, start_response) >> > >> > > Module tw.core.middleware:68 in wsgi_app view>> resp = >> > > req.get_response(self.application) >> > >> > > Module webob:1325 in get_response view >> > > Module webob:1293 in call_application view >> > > Module tw.core.resource_injector:68 in _injector view>> resp >> > > = req.get_response(app) >> > >> > > Module webob:1325 in get_response view >> > > Module webob:1293 in call_application view >> > > Module beaker.middleware:81 in __call__ view>> return >> > > self.app(environ, start_response) >> > >> > > Module beaker.middleware:160 in __call__ view>> return >> > > self.wrap_app(environ, session_start_response) >> > >> > > Module routes.middleware:130 in __call__ view>> response = >> > > self.app(environ, start_response) >> > >> > > Module pylons.wsgiapp:125 in __call__ view>> response = >> > > self.dispatch(controller, environ, start_response) >> > >> > > Module pylons.wsgiapp:324 in dispatch view>> return >> > > controller(environ, start_response) >> > >> > > Module movies.lib.base:32 in __call__ view>> return >> > > TGController.__call__(self, environ, start_response) >> > >> > > Module pylons.controllers.core:221 in __call__ view>> >> > > response = self._dispatch_call() >> > >> > > Module pylons.controllers.core:172 in _dispatch_call view>> >> > > response = self._inspect_call(func) >> > >> > > Module pylons.controllers.core:107 in _inspect_call view>> >> > > result = self._perform_call(func, args) >> > >> > > Module tg.controllers:857 in _perform_call view>> self, >> > > controller, params, remainder=remainder) >> > >> > > Module tg.controllers:172 in _perform_call view>> output = >> > > controller(*remainder, **dict(params)) >> > >> > > Module ?:2 in _w view >> > > Module tg.decorators:560 in with_trailing_slash view>> >> > > return func(*args, **kwargs) >> > >> > > Module tg.decorators:493 in _w view>> c.paginators[name] = >> > > page >> > >> > > TypeError: 'NoneType' object does not support item assignment >> >> -- >> You received this message because you are subscribed to the Google Groups >> "TurboGears" 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/turbogears?hl=en. >> > > > > -- > Michael J. Pedersen > My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171 > Yahoo/pedermj2002, MSN/[email protected] > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" 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/turbogears?hl=en. >
I just happened to have the same problem today and I used the instructions at: http://turbogears.org/2.1/docs/main/Extensions/Admin/index.html#tgext-admin to change to tgext.admin. This change produced the same error. I have two databases which are having the same issue, auth and a legacy database: class RootController(BaseController): ... admin = AdminController([User, Group, Permission], DBSession) cody_admin = AdminController([PdenType,Code], cody_session) -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

