Hi, I just finished the Wiki in 20 minutes tutorial for TG 1.97 (AKA 2.0) and I'm getting a weird error when I try to go to the index. Here's the traceback:
Error Traceback: View as: Interactive (full) | Text (full) | XML (full) ⇝ TypeError: default() got multiple values for keyword argument 'pagename' clear this clear this URL: http://localhost:8080/notfound?pagename=pagename%3DFrontPage Module weberror.evalexception:428 in respond view << try: __traceback_supplement__ = errormiddleware.Supplement, self, environ app_iter = self.application(environ, detect_start_response) # Don't create a list from a paste.fileapp object >> app_iter = self.application(environ, detect_start_response) Module tg.configuration:358 in remover view << def remover(environ, start_response): try: return app(environ, start_response) finally: log.debug("Removing DBSession from current thread") >> return app(environ, start_response) Module repoze.tm:19 in __call__ view << return start_response(status, headers, exc_info) try: result = self.application(environ, save_status_and_headers) except: self.abort() >> result = self.application(environ, save_status_and_headers) Module tw.core.middleware:30 in __call__ view << def __call__(self, environ, start_response): return self.wsgi_app(environ, start_response) def wsgi_app(self, environ, start_response): >> return self.wsgi_app(environ, start_response) Module paste.registry:350 in __call__ view << try: app_iter = self.application(environ, start_response) except Exception, e: # Regardless of if the content is an iterable, generator, list >> app_iter = self.application(environ, start_response) Module tw.core.middleware:48 in wsgi_app view << req.script_name += reg.prefix return req.get_response(reg)(environ, start_response) return req.get_response(self.application)(environ, start_response) finally: self.host_framework.end_request(environ) >> return req.get_response(self.application)(environ, start_response) Module webob:1304 in get_response view Module webob:1272 in call_application view Module tw.core.resource_injector:56 in _injector view << return writer app_iter = app(environ, determine_response_type) if context['inject']: #XXX check PEP 333 to see if this is correct behaviour >> app_iter = app(environ, determine_response_type) Module beaker.middleware:74 in __call__ view << environ['paste.registry'].register(self.cache, self.cache_manager) environ[self.environ_key] = self.cache_manager return self.app(environ, start_response) >> return self.app(environ, start_response) Module beaker.middleware:147 in __call__ view << headers.append(('Set-cookie', cookie)) return start_response(status, headers, exc_info) return self.wrap_app(environ, session_start_response) def _get_session(self): >> return self.wrap_app(environ, session_start_response) Module routes.middleware:100 in __call__ view << environ['SCRIPT_NAME'] = environ['SCRIPT_NAME'] [:-1] response = self.app(environ, start_response) del config.environ del self.mapper.environ >> response = self.app(environ, start_response) Module pylons.wsgiapp:117 in __call__ view << controller = self.resolve(environ, start_response) response = self.dispatch(controller, environ, start_response) if 'paste.testing_variables' in environ and hasattr(response, >> response = self.dispatch(controller, environ, start_response) Module pylons.wsgiapp:312 in dispatch view << if log_debug: log.debug("Calling controller class with WSGI interface") return controller(environ, start_response) def load_test_env(self, environ): >> return controller(environ, start_response) Module wiki20.lib.base:33 in __call__ view << # available in environ['pylons.routes_dict'] return TGController.__call__(self, environ, start_response) >> return TGController.__call__(self, environ, start_response) Module pylons.controllers.core:201 in __call__ view << return response(environ, self.start_response) response = self._dispatch_call() if not start_response_called: self.start_response = start_response >> response = self._dispatch_call() Module pylons.controllers.core:156 in _dispatch_call view << req.environ['pylons.action_method'] = func response = self._inspect_call(func) else: if log_debug: >> response = self._inspect_call(func) Module pylons.controllers.core:92 in _inspect_call view << func.__name__, args) try: result = self._perform_call(func, args) except HTTPException, httpe: if log_debug: >> result = self._perform_call(func, args) Module tg.controllers:501 in _perform_call view << controller, remainder, params = self._get_routing_info(routingArgs) result = DecoratedController._perform_call( self, controller, params, remainder=remainder) except HTTPException, httpe: >> self, controller, params, remainder=remainder) Module tg.controllers:106 in _perform_call view << # call controller method output = controller(*remainder, **dict(params)) except formencode.api.Invalid, inv: >> output = controller(*remainder, **dict(params)) TypeError: default() got multiple values for keyword argument 'pagename' And here's my root.py controller code: http://paste.turbogears.org/paste/9181 I'm not sure what else you'll need. This is quite a bit different than the 1.0 tracebacks, so I'm not sure how to debug this. I'm using whatever the tgsetup.py file downloaded on Monday. I'm running on Windows XP, Python 2.5.2. Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

