############################################################################## # # Copyright (c) 2004 Zope Corporation and Contributors. All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """ CMFDefault setup handlers. $Id: setuphandlers.py 40391 2005-11-28 16:21:21Z yuppie $ """ from exceptions import BadRequest def importVarious(context): """ Import various settings. This provisional handler will be removed again as soon as full handlers are implemented for these steps. """ site = context.getSite() try: site.manage_addPortalFolder('Members') except BadRequest: return 'Various settings: Nothing to import.' site.Members.manage_addProduct['OFSP'].manage_addDTMLMethod('index_html', 'Member list', '') return 'Various settings imported.'