[CMF-checkins] CVS: Products/CMFDefault - Portal.py:1.42
Grégoire Weber
zope.org at incept.ch
Thu Jul 22 06:18:06 EDT 2004
Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv3539
Modified Files:
Portal.py
Log Message:
- On adding a CMF Site the CMFUid tools are instantiated (doesn't raise exceptions if CMFUid is not installed)
=== Products/CMFDefault/Portal.py 1.41 => 1.42 ===
--- Products/CMFDefault/Portal.py:1.41 Wed Jul 7 04:57:15 2004
+++ Products/CMFDefault/Portal.py Thu Jul 22 06:18:06 2004
@@ -202,7 +202,16 @@
addCMFDefaultTool('Default Properties Tool', None)
addCMFDefaultTool('Default Metadata Tool', None)
addCMFDefaultTool('Default Syndication Tool', None)
-
+
+ # try to install CMFUid without raising exceptions if not available
+ try:
+ addCMFUidTool = p.manage_addProduct['CMFUid'].manage_addTool
+ except AttributeError:
+ pass
+ else:
+ addCMFUidTool('Unique Id Generator Tool', None)
+ addCMFUidTool('Unique Id Handler Tool', None)
+
def setupMailHost(self, p):
p.manage_addProduct['MailHost'].manage_addMailHost(
'MailHost', smtp_host='localhost')
More information about the CMF-checkins
mailing list