[peak.config.loaders] # This section defines the types of data that can be used in # "[Load Settings From]" sections. Each entry is either the loading function # to be used, or an import string specifying the loading function. Loading # functions must conform to the 'config.ISettingLoader' interface. file = "peak.config.config_components:loadConfigFile" mapping = "peak.config.config_components:loadMapping" [Load Settings From] # "Load Settings From" sections are processed in-line to load settings from # other sources. 'file=' entries act like "include" operations, loading # configuration files in the same format. 'mapping=' entries load Python # mapping objects. The first argument is the filename or mapping object, # respectively, and the second argument, if present, is a prefix to be used # on property names found in the specified mapping or file. mapping = importString('os.environ'), 'environ.*' [peak.naming.schemes] # This section defines naming context factories or ParsedURL subclasses to # be used for various URL schemes. The entry name is the URL scheme, and # the value is either the object or an import string for loading it. import = "peak.naming.factories.peak_imports:importURL" ldap = "peak.naming.factories.ldap:ldapURL" smtp = "peak.naming.factories.smtp:smtpURL" uuid = "peak.naming.factories.uuid:uuidURL" lockfile = "peak.naming.factories.lockfiles:lockfileURL" nulllockfile= "peak.naming.factories.lockfiles:lockfileURL" shlockfile = "peak.naming.factories.lockfiles:lockfileURL" flockfile = "peak.naming.factories.lockfiles:lockfileURL" winflockfile= "peak.naming.factories.lockfiles:lockfileURL" [Provide Utilities] # "Provide Utilities" sections define utilities by mapping from an import # string for an interface, to an expression defining the Provider. In this # case, we're defining a global default provider for the 'naming.IObjectFactory' # interface, which "bottoms out" the search for object factories with the # default behavior for creating an object from state found in a naming context. # At some point, this section will also include setup for default transaction # services, etc. peak.naming.interfaces.IObjectFactory = Provider( lambda *x: importString('peak.naming.factories') )