Mercurial > wikked
changeset 223:a978ecf99408
Fixed a bug with getting page infos with a relative path.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 09 Mar 2014 20:31:27 -0700 |
parents | 31ac8bd02ddd |
children | d45450a0256a |
files | wikked/fs.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/fs.py Sun Mar 09 20:26:54 2014 -0700 +++ b/wikked/fs.py Sun Mar 09 20:31:27 2014 -0700 @@ -122,6 +122,7 @@ def _getPageInfo(self, path): meta = None + abs_path = os.path.abspath(path) rel_path = os.path.relpath(path, self.root) if rel_path.startswith(META_ENDPOINT + os.sep): rel_path = rel_path[len(META_ENDPOINT) + 1:] @@ -137,7 +138,7 @@ url = '/' + name if meta: url = u"%s:/%s" % (meta.lower(), name) - return PageInfo(url, path) + return PageInfo(url, abs_path) def _getPhysicalPath(self, url, is_file=True, make_new=False): endpoint, url = split_page_url(url)