From 65e10bab7ed29384237759d4582c97a4bcb83435 Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Fri, 4 Mar 2011 13:01:16 +0530 Subject: [PATCH] Fixed server to refresh changes for listing pages as well --- hyde/server.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hyde/server.py b/hyde/server.py index c22e101..14c874f 100644 --- a/hyde/server.py +++ b/hyde/server.py @@ -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: