[CMF-checkins] CVS: CMF/CMFCore - TypesTool.py:1.58.2.1
Yvo Schubbe
schubbe@web.de
Sun, 13 Jul 2003 11:50:27 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv28863/CMFCore
Modified Files:
Tag: yuppie-collector168-redo-branch
TypesTool.py
Log Message:
redo using Method Aliases:
- un-hardwired manage_FTPget for 'text/html' (Collector #168)
=== CMF/CMFCore/TypesTool.py 1.58 => 1.58.2.1 ===
--- CMF/CMFCore/TypesTool.py:1.58 Fri Jul 4 03:58:47 2003
+++ CMF/CMFCore/TypesTool.py Sun Jul 13 11:49:53 2003
@@ -25,7 +25,7 @@
from Acquisition import aq_get
from zLOG import LOG, WARNING, ERROR
from OFS.Folder import Folder
-from Products.PageTemplates.PageTemplateFile import PageTemplateFile
+from Products.PageTemplates.PageTemplateFile import PageTemplateFile
import Products
from interfaces.portal_types import ContentTypeInformation as ITypeInformation
@@ -435,6 +435,8 @@
dict['(Default)'] = 'index_html'
if viewmethod == '(Default)':
dict['view'] = 'index_html'
+ if self.content_meta_type in ('Document', 'News Item'):
+ dict['gethtml'] = 'source_html'
self.setMethodAliases(dict)
return 1