Commit a8c805d1 authored by Aurel's avatar Aurel

* remove the bug fix in download, it was a mistake

* export dependency_list but not id


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4375 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 936a1524
...@@ -148,7 +148,7 @@ class BusinessTemplateFolder(BusinessTemplateArchive): ...@@ -148,7 +148,7 @@ class BusinessTemplateFolder(BusinessTemplateArchive):
def _initImport(self, file=None, path=None, **kw): def _initImport(self, file=None, path=None, **kw):
self.file_list = file self.file_list = file
# to make id consistent, must remove a part of path while importing # to make id consistent, must remove a part of path while importing
self.root_path_len = len(string.split(path, os.sep)) self.root_path_len = len(string.split(path, os.sep)) + 1
def importFiles(self, klass, **kw): def importFiles(self, klass, **kw):
""" """
...@@ -2527,7 +2527,7 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -2527,7 +2527,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
for prop in self.propertyMap(): for prop in self.propertyMap():
type = prop['type'] type = prop['type']
id = prop['id'] id = prop['id']
if id in ('uid', 'rid', 'sid', 'id_group', 'last_id', 'dependency_list'): if id in ('id', 'uid', 'rid', 'sid', 'id_group', 'last_id'):
continue continue
value = self.getProperty(id) value = self.getProperty(id)
if type == 'text' or type == 'string' or type == 'int': 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