[CMF-checkins] CVS: Products/CMFDefault - __init__.py:1.29
exceptions.py:1.5 setuphandlers.py:1.4
Yvo Schubbe
y.2005- at wcm-solutions.de
Wed Mar 16 03:58:38 EST 2005
Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv19825/CMFDefault
Modified Files:
__init__.py exceptions.py setuphandlers.py
Log Message:
- moved CMFUid configuration into the CMFUid product
- importVarious no longer complains if run twice
- made default profile explicitly a BASE profile
=== Products/CMFDefault/__init__.py 1.28 => 1.29 ===
--- Products/CMFDefault/__init__.py:1.28 Sun Nov 21 12:05:44 2004
+++ Products/CMFDefault/__init__.py Wed Mar 16 03:58:08 2005
@@ -21,11 +21,12 @@
from Products.CMFCore.utils import ToolInit
from Products.CMFCore.utils import ContentInit
from Products.CMFCore.utils import registerIcon
+from Products.CMFSetup import BASE
from Products.CMFSetup import profile_registry
import utils
from permissions import AddPortalContent
-
+
import Portal
import Document
import Link
@@ -112,7 +113,8 @@
'CMFDefault Site',
'Profile for a default CMFSite.',
'profiles/default',
- 'CMFDefault')
+ 'CMFDefault',
+ BASE)
context.registerClass( Portal.CMFSite
, constructors=( Portal.manage_addCMFSiteForm
=== Products/CMFDefault/exceptions.py 1.4 => 1.5 ===
--- Products/CMFDefault/exceptions.py:1.4 Thu Aug 12 11:07:40 2004
+++ Products/CMFDefault/exceptions.py Wed Mar 16 03:58:08 2005
@@ -21,6 +21,9 @@
security.declarePublic('AccessControl_Unauthorized')
from Products.CMFCore.exceptions import AccessControl_Unauthorized
+security.declarePublic('BadRequest')
+from Products.CMFCore.exceptions import BadRequest
+
security.declarePublic('CopyError')
from Products.CMFCore.exceptions import CopyError
=== Products/CMFDefault/setuphandlers.py 1.3 => 1.4 ===
--- Products/CMFDefault/setuphandlers.py:1.3 Fri Dec 17 12:51:10 2004
+++ Products/CMFDefault/setuphandlers.py Wed Mar 16 03:58:08 2005
@@ -17,6 +17,7 @@
from Products.CMFCore.utils import getToolByName
+from exceptions import BadRequest
from Portal import PortalGenerator
@@ -28,19 +29,12 @@
"""
site = context.getSite()
- # try to install CMFUid without raising exceptions if not available
- try:
- addCMFUidTool = site.manage_addProduct['CMFUid'].manage_addTool
- except AttributeError:
- pass
- else:
- addCMFUidTool('Unique Id Annotation Tool', None)
- addCMFUidTool('Unique Id Generator Tool', None)
- addCMFUidTool('Unique Id Handler Tool', None)
-
# add custom skin folder
stool = getToolByName(site, 'portal_skins')
- stool.manage_addProduct['OFSP'].manage_addFolder(id='custom')
+ try:
+ stool.manage_addProduct['OFSP'].manage_addFolder(id='custom')
+ except BadRequest:
+ return 'Various settings: Nothing to import.'
gen = PortalGenerator()
gen.setupMailHost(site)
More information about the CMF-checkins
mailing list