[CMF-checkins] SVN: CMF/trunk/CMFCore/browser/typeinfo.py - ignore
non-XML files
Yvo Schubbe
y.2006_ at wcm-solutions.de
Wed May 3 10:18:38 EDT 2006
Log message for revision 67928:
- ignore non-XML files
Changed:
U CMF/trunk/CMFCore/browser/typeinfo.py
-=-
Modified: CMF/trunk/CMFCore/browser/typeinfo.py
===================================================================
--- CMF/trunk/CMFCore/browser/typeinfo.py 2006-05-03 14:11:19 UTC (rev 67927)
+++ CMF/trunk/CMFCore/browser/typeinfo.py 2006-05-03 14:18:38 UTC (rev 67928)
@@ -44,6 +44,9 @@
context = stool._getImportContext(info['id'])
file_ids = context.listDirectory('types')
for file_id in file_ids or ():
+ if not file_id.endswith('.xml'):
+ continue
+
filename = 'types/%s' % file_id
body = context.readDataFile(filename)
if body is None:
More information about the CMF-checkins
mailing list