Back to index

plone3  3.1.7
Namespaces | Functions | Variables
CMFDefault Namespace Reference

Namespaces

namespace  browser
namespace  DefaultWorkflow
namespace  DiscussionItem
namespace  DiscussionTool
namespace  Document
namespace  DublinCore
namespace  exceptions
namespace  factory
namespace  Favorite
namespace  File
namespace  formlib
namespace  Image
namespace  interfaces
namespace  MembershipTool
namespace  NewsItem
namespace  permissions
namespace  Portal
namespace  PropertiesTool
namespace  RegistrationTool
namespace  setuphandlers
namespace  skin
namespace  SkinnedFolder
namespace  SyndicationInfo
namespace  SyndicationTool
namespace  testing
namespace  tests
namespace  URLTool
namespace  utils

Functions

def initialize

Variables

tuple contentConstructors
tuple tools

Function Documentation

def CMFDefault.initialize (   context)

Definition at line 71 of file __init__.py.

00071 
00072 def initialize(context):
00073 
00074     ToolInit( 'CMF Default Tool'
00075             , tools=tools
00076             , icon='tool.gif'
00077             ).initialize( context )
00078 
00079     # BBB: register oldstyle constructors
00080     ContentInit( 'CMF Default Content'
00081                , content_types=()
00082                , permission=AddPortalContent
00083                , extra_constructors=contentConstructors
00084                ).initialize( context )
00085 
00086     context.registerClass( Portal.CMFSite
00087                          , constructors=(factory.addConfiguredSiteForm,
00088                                          factory.addConfiguredSite)
00089                          , icon='images/portal.gif'
00090                          )
00091 
00092     registerIcon( DefaultWorkflow.DefaultWorkflowDefinition
00093                 , 'images/workflow.gif'
00094                 , globals()
00095                 )
00096 
00097     # make registerHelp work with 2 directories
00098     help = context.getProductHelp()
00099     lastRegistered = help.lastRegistered
00100     context.registerHelp(directory='help', clear=1)
00101     context.registerHelp(directory='interfaces', clear=1)
00102     if help.lastRegistered != lastRegistered:
00103         help.lastRegistered = None
00104         context.registerHelp(directory='help', clear=1)
00105         help.lastRegistered = None
00106         context.registerHelp(directory='interfaces', clear=0)
00107     context.registerHelpTitle('CMF Default Help')

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 ( Document.addDocument
00002                       , File.addFile
00003                       , Image.addImage
00004                       , Link.addLink
00005                       , Favorite.addFavorite
00006                       , NewsItem.addNewsItem
00007                       , SkinnedFolder.addSkinnedFolder
00008                       )

Definition at line 46 of file __init__.py.