Created
July 9, 2010 18:40
-
-
Save JoshRosen/469844 to your computer and use it in GitHub Desktop.
Fix for problem described at http://groups.google.com/group/hyde-dev/browse_thread/thread/541c368b4e5f27ec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hydeengine/siteinfo.py b/hydeengine/siteinfo.py | |
index 24018dc..9aff833 100644 | |
--- a/hydeengine/siteinfo.py | |
+++ b/hydeengine/siteinfo.py | |
@@ -363,12 +363,12 @@ class ContentNode(SiteNode): | |
@property | |
def target_folder(self): | |
deploy_folder = self.site.target_folder | |
- return deploy_folder.child_folder_with_fragment(self.url) | |
+ return deploy_folder.child_folder_with_fragment(self.fragment) | |
@property | |
def temp_folder(self): | |
temp_folder = self.site.temp_folder | |
- return temp_folder.child_folder_with_fragment(self.url) | |
+ return temp_folder.child_folder_with_fragment(self.fragment) | |
@property | |
def fragment(self): | |
@@ -427,12 +427,14 @@ class MediaNode(SiteNode): | |
@property | |
def target_folder(self): | |
deploy_folder = self.site.target_folder | |
- return deploy_folder.child_folder_with_fragment(self.url) | |
+ fragment = self.folder.get_fragment(self.site.folder) | |
+ return deploy_folder.child_folder_with_fragment(fragment) | |
@property | |
def temp_folder(self): | |
temp_folder = self.site.temp_folder | |
- return temp_folder.child_folder_with_fragment(self.url) | |
+ fragment = self.folder.get_fragment(self.site.folder) | |
+ return temp_folder.child_folder_with_fragment(fragment) | |
class SiteInfo(SiteNode): | |
def __init__(self, settings, site_path): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
self.url
joinsSITE_ROOT
toself.fragment
, which was causing the problem.