Commit 40edd789 authored by Alexandre Boeglin's avatar Alexandre Boeglin

fixed import from tgz bug:

"CategoryTemplateItem in PortalTypeBaseCategoryTemplateItem" is True.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5144 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40444ae6
......@@ -227,7 +227,7 @@ class BusinessTemplateTarball(BusinessTemplateArchive):
for info in tar.getmembers():
if 'CVS' in info.name.split('/'):
continue
if class_name in info.name:
if class_name in info.name.split('/'):
if info.isreg():
file = tar.extractfile(info)
folders = string.split(info.name, os.sep)
......
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