Browse Source

added ability to serve files which have no corresponding resources, such as

thumbnails and tagger pages
main
Grygoriy Fuchedzhy 13 years ago
committed by Lakshmi Vyasarajan
parent
commit
aecda14447
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      hyde/server.py

+ 4
- 0
hyde/server.py View File

@@ -70,6 +70,10 @@ class HydeRequestHandler(SimpleHTTPRequestHandler):
res = site.content.resource_from_relative_deploy_path(path + '.' + ext) res = site.content.resource_from_relative_deploy_path(path + '.' + ext)
if res: if res:
break break
for ext in site.config.urlcleaner.strip_extensions:
new_path = site.config.deploy_root_path.child(path + '.' + ext)
if File(new_path).exists:
return new_path
else: else:
res = site.content.resource_from_relative_deploy_path(path) res = site.content.resource_from_relative_deploy_path(path)




Loading…
Cancel
Save