Log message for revision 68617:
- skip non-XML files (e.g. scripts)
Changed:
U CMF/branches/2.0/CMFCore/browser/typeinfo.py
-=-
Modified: CMF/branches/2.0/CMFCore/browser/typeinfo.py
===================================================================
--- CMF/branches/2.0/CMFCore/browser/typeinfo.py 2006-06-13 19:01:48 UTC
(rev 68616)
+++ CMF/branches/2.0/CMFCore/browser/typeinfo.py 2006-06-13 19:02:05 UTC
(rev 68617)
@@ -79,6 +79,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:
_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins