Back to index

plone3  3.1.7
Namespaces | Functions | Variables
CMFCore Namespace Reference

Namespaces

namespace  ActionInformation
namespace  ActionProviderBase
namespace  ActionsTool
namespace  browser
namespace  CachingPolicyManager
namespace  CatalogTool
namespace  CMFBTreeFolder
namespace  CMFCatalogAware
namespace  ContentTypeRegistry
namespace  DirectoryView
namespace  DiscussionTool
namespace  DynamicType
namespace  exceptions
namespace  exportimport
namespace  Expression
namespace  fiveactionstool
namespace  FSDTMLMethod
namespace  FSFile
namespace  FSImage
namespace  FSObject
namespace  FSPageTemplate
namespace  FSPropertiesObject
namespace  FSPythonScript
namespace  FSReSTMethod
namespace  FSSTXMethod
namespace  FSZSQLMethod
namespace  interfaces
namespace  MemberDataTool
namespace  MembershipTool
namespace  permissions
namespace  PortalContent
namespace  PortalFolder
namespace  PortalObject
namespace  RegistrationTool
namespace  Skinnable
namespace  SkinsContainer
namespace  SkinsTool
namespace  src
namespace  testing
namespace  tests
namespace  TypesTool
namespace  UndoTool
namespace  URLTool
namespace  utils
namespace  WorkflowCore
namespace  WorkflowTool
namespace  zcml

Functions

def initialize

Variables

tuple tools
tuple _EXTRA_CONSTRUCTORS
tuple __module_aliases__

Function Documentation

def CMFCore.initialize (   context)

Definition at line 79 of file __init__.py.

00079 
00080 def initialize(context):
00081     context.registerClass(
00082         DirectoryView.DirectoryView,
00083         constructors=(('manage_addDirectoryViewForm',
00084                        DirectoryView.manage_addDirectoryViewForm),
00085                       DirectoryView.manage_addDirectoryView,
00086                       DirectoryView.manage_listAvailableDirectories,
00087                       ),
00088         icon='images/dirview.gif'
00089         )
00090 
00091     context.registerClass(
00092         CookieCrumbler.CookieCrumbler,
00093         constructors=(CookieCrumbler.manage_addCCForm,
00094                       CookieCrumbler.manage_addCC),
00095         icon = 'images/cookie.gif'
00096         )
00097 
00098     context.registerClass(
00099         ContentTypeRegistry.ContentTypeRegistry,
00100         constructors=( ContentTypeRegistry.manage_addRegistry, ),
00101         icon = 'images/registry.gif'
00102         )
00103 
00104     context.registerClass(
00105         CachingPolicyManager.CachingPolicyManager,
00106         constructors=( CachingPolicyManager.manage_addCachingPolicyManager, ),
00107         icon = 'images/registry.gif'
00108         )
00109 
00110     utils.registerIcon(ActionInformation.ActionCategory,
00111                        'images/cmf_action_category.gif', globals())
00112     utils.registerIcon(ActionInformation.Action,
00113                        'images/cmf_action.gif', globals())
00114     utils.registerIcon(TypesTool.FactoryTypeInformation,
00115                        'images/typeinfo.gif', globals())
00116     utils.registerIcon(TypesTool.ScriptableTypeInformation,
00117                        'images/typeinfo.gif', globals())
00118     utils.registerIcon(FSDTMLMethod.FSDTMLMethod,
00119                        'images/fsdtml.gif', globals())
00120     utils.registerIcon(FSPythonScript.FSPythonScript,
00121                        'images/fspy.gif', globals())
00122     utils.registerIcon(FSImage.FSImage,
00123                        'images/fsimage.gif', globals())
00124     utils.registerIcon(FSFile.FSFile,
00125                        'images/fsfile.gif', globals())
00126     utils.registerIcon(FSPageTemplate.FSPageTemplate,
00127                        'images/fspt.gif', globals())
00128     utils.registerIcon(FSPropertiesObject.FSPropertiesObject,
00129                        'images/fsprops.gif', globals())
00130     utils.registerIcon(FSZSQLMethod.FSZSQLMethod,
00131                        'images/fssqlmethod.gif', globals())
00132 
00133     utils.ToolInit( 'CMF Core Tool'
00134                   , tools=tools
00135                   , icon='tool.gif'
00136                   ).initialize( context )
00137 
00138     # BBB: register oldstyle constructors
00139     utils.ContentInit( 'CMF Core Content'
00140                      , content_types=()
00141                      , permission=AddPortalFolders
00142                      , extra_constructors=_EXTRA_CONSTRUCTORS
00143                      ).initialize( context )
00144 
00145     # make registerHelp work with 2 directories
00146     help = context.getProductHelp()
00147     lastRegistered = help.lastRegistered
00148     context.registerHelp(directory='help', clear=1)
00149     context.registerHelp(directory='interfaces', clear=1)
00150     if help.lastRegistered != lastRegistered:
00151         help.lastRegistered = None
00152         context.registerHelp(directory='help', clear=1)
00153         help.lastRegistered = None
00154         context.registerHelp(directory='interfaces', clear=0)
00155     context.registerHelpTitle('CMF Core Help')

Variable Documentation

Initial value:
00001 ( ( 'Products.BTreeFolder2.CMFBTreeFolder'
00002                        , 'Products.CMFCore.CMFBTreeFolder'
00003                        )
00004                      ,
00005                      )

Definition at line 73 of file __init__.py.

Initial value:
00001 (PortalFolder.manage_addPortalFolder,
00002                        CMFBTreeFolder.manage_addCMFBTreeFolder)

Definition at line 67 of file __init__.py.