Merge pull request #153 from jcerjak/master

Use getPhysicalPath instead of absolute_url_path in api.content.get()
This commit is contained in:
Nejc Zupan 2014-01-27 15:05:42 -08:00
commit 71d99690bf
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def get(path=None, UID=None):
"""
if path:
site = portal.get()
site_absolute_path = site.absolute_url_path()
site_absolute_path = '/'.join(site.getPhysicalPath())
if not path.startswith('{0}'.format(site_absolute_path)):
path = '{0}{1}'.format(site_absolute_path, path)