Commit b12a6626 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Ignore non-XML files.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17603 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e201f04
......@@ -70,7 +70,7 @@ class BusinessTemplateInfoBase:
def setUpModules(self):
name = '%s/ModuleTemplateItem/' % self.getPrefix()
for i in self.findFileInfosByName(startswith=name):
for i in self.findFileInfosByName(startswith=name, endswith='.xml'):
source = self.readFileInfo(i)
doc = xml.dom.minidom.parseString(source)
module_id = doc.getElementsByTagName('id')[0].childNodes[0].data
......@@ -145,7 +145,7 @@ class BusinessTemplateInfoBase:
return handler.data
name = '%s/ActionTemplateItem/portal_types/' % self.getPrefix()
for i in self.findFileInfosByName(startswith=name):
for i in self.findFileInfosByName(startswith=name, endswith='.xml'):
portal_type = url2pathname(self.getFileInfoName(i).split('/')[-2])
if not portal_type in self.actions:
self.actions[portal_type] = []
......
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