From: Jeff J. <je...@je...> - 2002-04-18 20:14:44
|
I'm working on a new project and wanted to try out Cheetah's inheritance approach rather than containment. I found that I had to add '.tmpl' to the extensionsToIgnore setting in order to specify my servlet name in the URL without the extension. Otherwise I got 404 - Page not found but _no_ errors were reported on the WebKit stdout. This highlighted a few issues. With default Application.config settings, the WebKit output was: 1 2002-04-18 16:05:14 /partner/base 1 0.01 secs /partner/base This gives a 404 error in the browser but no error shows in stdout. If I changed UseCascadingExtensions to 0: 1 2002-04-18 16:05:56 /partner/base WARNING: For /base, did not get precisely 1 filename: ['/home/jeff/jeff/partner/www/base.tmpl', '/home/jeff/jeff/partner/www/base.py'] 1 0.01 secs /partner/base This also gives a 404 in the browser. By adding '.tmpl' to ExtensionsToIgnore, things work as expected. Since '*.tmpl' is in the default FilesToHide setting, I propose it should also be added to ExtensionsToIgnore. There seems to be 3 competing pairs of settings below that combine to produce strange behavior. Could the winner be chosen and the other two removed? 'ExtensionsToIgnore': ['.pyc', '.pyo', '.py~', '.psp~', '.html~','.bak',], #'.tmpl'], 'ExtensionsToServe': [], # if specified, only extensions in this list will be used 'UseCascadingExtensions': 0, 'ExtensionCascadeOrder':['.py','.psp','.html'], 'FilesToHide': ['.*','*~', '*.bak', '*.tmpl', '*.config', '__init__.*', '*.pyc', '*.pyo'], 'FilesToServe': [], # if specified, only files matching these patterns will be served Regards, Jeff |