Back to index

plone3  3.1.7
Functions
CMFDefault.setuphandlers Namespace Reference

Functions

def importVarious

Function Documentation

Import various settings.

This provisional handler will be removed again as soon as full handlers
are implemented for these steps.

Definition at line 21 of file setuphandlers.py.

00021 
00022 def importVarious(context):
00023     """ Import various settings.
00024 
00025     This provisional handler will be removed again as soon as full handlers
00026     are implemented for these steps.
00027     """
00028     site = context.getSite()
00029 
00030     try:
00031         site.manage_addPortalFolder('Members')
00032     except BadRequest:
00033         return 'Various settings: Nothing to import.'
00034     site.Members.manage_addProduct['OFSP'].manage_addDTMLMethod('index_html',
00035                                         'Member list', '<dtml-return roster>')
00036     site.acl_users.encrypt_passwords = False
00037 
00038     return 'Various settings from PortalGenerator imported.'