Browse Source

Fixed server to refresh changes for listing pages as well

main
Lakshmi Vyasarajan 14 years ago
parent
commit
65e10bab7e
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      hyde/server.py

+ 7
- 3
hyde/server.py View File

@@ -58,9 +58,13 @@ class HydeRequestHandler(SimpleHTTPRequestHandler):
logger.debug("Trying to load file based on request:[%s]" % result.path)
path = result.path.lstrip('/')
if path.strip() == "" or File(path).kind.strip() == "":
return site.config.deploy_root_path.child(path)

res = site.content.resource_from_relative_deploy_path(path)
deployed = site.config.deploy_root_path.child(path)
deployed = Folder.file_or_folder(deployed)
if isinstance(deployed, Folder):
node = site.content.node_from_relative_path(path)
res = node.get_resource('index.html')
else:
res = site.content.resource_from_relative_deploy_path(path)

if not res:



Loading…
Cancel
Save