diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 831ded01c4fcc6d63989f521cd496bf3028b9df2..0d7a251452b83f1ce14d029da2b628e55850ddcb 100755 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -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)