[CMF-checkins] SVN: CMF/trunk/CMFCore/browser/typeinfo.py - skip
non-XML files (e.g. scripts)
Yvo Schubbe
y.2006_ at wcm-solutions.de
Tue Jun 13 15:02:17 EDT 2006
Log message for revision 68618:
- skip non-XML files (e.g. scripts)
Changed:
U CMF/trunk/CMFCore/browser/typeinfo.py
-=-
Modified: CMF/trunk/CMFCore/browser/typeinfo.py
===================================================================
--- CMF/trunk/CMFCore/browser/typeinfo.py 2006-06-13 19:02:05 UTC (rev 68617)
+++ CMF/trunk/CMFCore/browser/typeinfo.py 2006-06-13 19:02:17 UTC (rev 68618)
@@ -75,6 +75,9 @@
context = stool._getImportContext(profile_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