Works just fine here. May be it's the version of
Python interpreter (2.6)? What if you remove
raise statement?
The raise statement was only my last attempt to get something to work.
Note also the print and the unprotected call to render_response(). If
I define view() as suggested in its docstring:
def view(self, url):
try:
return render_response('/'+url)
except myghty.exception.ComponentNotFound:
return Response(code=404)
I get the same result.
In case it's a routing issue here's my config/routing.make_map sans
comments:
def make_map(global_conf={}, app_conf={}):
root_path =
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
mapper = Mapper(directory=os.path.join(root_path, 'controllers'))
mapper.connect('error/:action/:id', controller='error')
mapper.connect('', controller='hello', action='index')
mapper.connect(':controller/:action/:id')
mapper.connect('*url', controller='template', action='view')
return mapper
Skip