[CMF-checkins] CVS: CMF/CMFCore - TypesTool.py:1.57
Yvo Schubbe
schubbe@web.de
Sun, 29 Jun 2003 12:40:14 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv8433/CMFCore
Modified Files:
TypesTool.py
Log Message:
improved aliases migration
=== CMF/CMFCore/TypesTool.py 1.56 => 1.57 ===
--- CMF/CMFCore/TypesTool.py:1.56 Sat Jun 28 12:31:20 2003
+++ CMF/CMFCore/TypesTool.py Sun Jun 29 12:40:13 2003
@@ -436,6 +436,13 @@
else:
dict['(Default)'] = viewmethod
+ # correct guessed values if we know better
+ if self.content_meta_type in ('Portal File', 'Portal Folder',
+ 'Portal Image'):
+ dict['(Default)'] = 'index_html'
+ if viewmethod == '(Default)':
+ dict['view'] = 'index_html'
+
self.setMethodAliases(dict)
return 1