Skip to content

Commit

Permalink
Merge pull request #16 from tingletech/master
Browse files Browse the repository at this point in the history
get_uid already escapes the path
  • Loading branch information
tingletech authored May 17, 2017
2 parents b484c9f + d42ce64 commit 6f117b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pynux/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def get_metadata(self, **documentid):
if len(documentid) != 1:
raise TypeError("either uid or path")
if 'path' in documentid:
uid = self.get_uid(escape_path(documentid['path']))
uid = self.get_uid(documentid['path'])
elif 'uid' in documentid:
uid = documentid['uid']
url = u'/'.join([self.conf['api'], "id", uid])
Expand All @@ -278,7 +278,7 @@ def update_nuxeo_properties(self, data, **documentid):
if len(documentid) != 1:
raise TypeError("either uid or path")
if 'path' in documentid:
uid = self.get_uid(escape_path(documentid['path']))
uid = self.get_uid(documentid['path'])
elif 'uid' in documentid:
uid = documentid['uid']
url = u'/'.join([self.conf['api'], "id", uid])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages
setup(
name='pynux',
version = "0.1.2",
version = "0.1.3",
packages = find_packages(),
install_requires = [
'requests', 'configparser', 'future'
Expand Down

0 comments on commit 6f117b7

Please sign in to comment.