Skip to content

Commit

Permalink
Merge pull request #153 from jcerjak/master
Browse files Browse the repository at this point in the history
Use getPhysicalPath instead of absolute_url_path in api.content.get()
  • Loading branch information
zupo committed Jan 27, 2014
2 parents 4700aaa + 1070984 commit 71d9969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/api/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 71d9969

Please sign in to comment.