def default(self, *args, **kw): if len(args) == 2: # /info/translators if args[0] == 'translators' and args[1] == 'info': return dict(tg_template='bafel.templates.translators-info') # /info/maintainers if args[0] == 'info' and args[1] == 'maintainers': return dict(tg_template='bafel.templates.maintainers-info') # /reponame/modulename try: repo = Repository.byName(args[0]) module = Module.byName(args[1]) viewmodule(self) ############################ <-- here except SQLObjectNotFound: flash("The path %s cannot be found" % cherrypy.request.path) raise redirect("/")