Commit 9a7315a5 authored by Aurel's avatar Aurel

Change a tarfile function to make it compatible with last python version

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4069 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 203fcfce
No related merge requests found
......@@ -192,7 +192,7 @@ class TemplateTool (BaseTool):
pid = prop['id']
if pid in ('uid', 'id'):
continue
prop_path = os.path.join(tar.membernames[0], 'bt', pid)
prop_path = os.path.join(tar.members[0].name, 'bt', pid)
info = tar.getmember(prop_path)
value = tar.extractfile(info).read()
if type == 'text' or type == 'string' or type == 'int':
......
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