Commit 7a152191 authored by Aurel's avatar Aurel

fix encoding of path at export


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4729 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77859fae
...@@ -338,7 +338,13 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -338,7 +338,13 @@ class ObjectTemplateItem(BaseTemplateItem):
obj = self._objects[key] obj = self._objects[key]
# create folder and subfolders # create folder and subfolders
folders, id = os.path.split(key) folders, id = os.path.split(key)
path = os.path.join(root_path, folders) encode_folders = []
for folder in folders.split('/'):
if '%' not in folder:
encode_folders.append(pathname2url(folder))
else:
encode_folders.append(folder)
path = os.path.join(root_path, (os.sep).join(encode_folders))
bta.addFolder(name=path) bta.addFolder(name=path)
# export object in xml # export object in xml
f=StringIO() f=StringIO()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment