[CMF-checkins] CVS: CMF - Portal.py:1.17

Jeffrey Shell jeffrey@digicool.com
Fri, 25 May 2001 09:32:44 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFDefault

Modified Files:
	Portal.py 
Log Message:
CMFTopic is now installed by default when building a new site.



--- Updated File Portal.py in package CMF --
--- Portal.py	2001/05/24 20:19:00	1.16
+++ Portal.py	2001/05/25 13:32:44	1.17
@@ -88,6 +88,7 @@
 from Products.CMFCore import PortalFolder
 from Products.CMFCore.TypesTool import ContentFactoryMetadata
 from Products.CMFCore.utils import getToolByName
+from Products.CMFTopic import Topic, topic_globals
 from DublinCore import DefaultDublinCoreImpl
 
 import Document, Image, File, Link, NewsItem, Favorite
@@ -277,14 +278,15 @@
         from Products.CMFCore.DirectoryView import addDirectoryViews
         ps = getToolByName(p, 'portal_skins')
         addDirectoryViews(ps, 'skins', globals())
+        addDirectoryViews(ps, 'skins', topic_globals)
         ps.manage_addProduct['OFSP'].manage_addFolder(id='custom')
         ps.addSkinSelection('Basic',
-            'custom, content, generic, control, Images',
+            'custom, topic, content, generic, control, Images',
             make_default=1)
         ps.addSkinSelection('Nouvelle',
-            'nouvelle, custom, content, generic, control, Images')
+            'nouvelle, custom, topic, content, generic, control, Images')
         ps.addSkinSelection('No CSS',
-            'no_css, custom, content, generic, control, Images')
+            'no_css, custom, topic, content, generic, control, Images')
         p.setupCurrentSkin()
 
     def setupTypes(self, p, initial_types=factory_type_information):
@@ -315,6 +317,7 @@
         self.setupDefaultSkins(p)
         self.setupTypes(p)
         self.setupTypes(p, PortalFolder.factory_type_information)
+        self.setupTypes(p, Topic.factory_type_information)
         self.setupWorkflow(p)
 
     def create(self, parent, id, create_userfolder):