resourceConfigFile = 'resources.ini' |
resourceConfigFile = 'resources.ini' |
|
|
# Factory to use for package resource directories |
# Factory to use for package resource directories |
packageResourceFactory = importString("peak.web.resource:ResourceDirectory") |
packageResourceFactory = importString("peak.web.resources:ResourceDirectory") |
|
|
# The default request classes used for each HTTP variant |
# The default request classes used for each HTTP variant |
HTTPRequest = importString('peak.web.requests.HTTPRequest') |
HTTPRequest = importString('peak.web.requests.HTTPRequest') |
XMLRPCRequest = importString('peak.web.requests.XMLRPCRequest') |
XMLRPCRequest = importString('peak.web.requests.XMLRPCRequest') |
|
|
|
|
|
[peak.web.resource_packages] |
|
|
|
# Property names with true values under this namespace indicate packages that |
|
# are safe to publish resources from, e.g.: |
|
# |
|
# peak.* = True |
|
# |
|
# would allow any data files in any peak.* package to be downloadable. Be |
|
# careful what you define here. |
|
|
[peak.web.DOMlets] |
[peak.web.DOMlets] |
|
|
|
|
text = importString('peak.web.templates.Text') |
text = importString('peak.web.templates.Text') |
list = importString('peak.web.templates.List') |
list = importString('peak.web.templates.List') |
|
url.* = importString('peak.web.templates.URLTag') |
|
|
|
|
[peak.naming] |
[peak.naming] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[peak.naming.schemes] |
[peak.naming.schemes] |
|
|
# This section defines naming context factories or URL.Base subclasses to |
# This section defines naming context factories or URL.Base subclasses to |
ldap = "peak.storage.LDAP:ldapURL" |
ldap = "peak.storage.LDAP:ldapURL" |
sybase = "peak.storage.SQL:GenericSQL_URL" |
sybase = "peak.storage.SQL:GenericSQL_URL" |
pgsql = "peak.storage.SQL:GenericSQL_URL" |
pgsql = "peak.storage.SQL:GenericSQL_URL" |
|
psycopg = "peak.storage.SQL:GenericSQL_URL" |
|
mockdb = "peak.storage.SQL:GenericSQL_URL" |
gadfly = "peak.storage.SQL:GadflyURL" |
gadfly = "peak.storage.SQL:GadflyURL" |
sqlite = "peak.storage.SQL:SqliteURL" |
sqlite = "peak.storage.SQL:SqliteURL" |
cxoracle = "peak.storage.SQL:OracleURL" |
cxoracle = "peak.storage.SQL:OracleURL" |
https = "peak.naming.factories.openable:OpenableURL" |
https = "peak.naming.factories.openable:OpenableURL" |
file = "peak.naming.factories.openable:FileURL" |
file = "peak.naming.factories.openable:FileURL" |
pkgfile = "peak.naming.factories.openable:PkgFileURL" |
pkgfile = "peak.naming.factories.openable:PkgFileURL" |
|
icb = "peak.net.icb:ICB_URL" |
|
|
|
|
|
|
|
tcp = "peak.net.sockets.tcpudpURL" |
|
udp = "peak.net.sockets.tcpudpURL" |
|
unix = "peak.net.sockets.unixURL" |
|
unix.dg = "peak.net.sockets.unixURL" |
|
fd = "peak.net.sockets.fdURL" |
|
|
zconfig.schema = "peak.config.load_zconfig:ZConfigSchemaContext" |
zconfig.schema = "peak.config.load_zconfig:ZConfigSchemaContext" |
|
shellcmd = "peak.naming.factories.shellcmd:ShellCommandCtx" |
|
|
|
|
|
# Data type conversion for database drivers |
|
|
|
[Sybase.sql_types] |
|
* = config.Namespace('peak.sql_types') |
|
|
|
[pgdb.sql_types] |
|
* = config.Namespace('peak.sql_types') |
|
|
|
[sqlite.sql_types] |
|
* = config.Namespace('peak.sql_types') |
|
|
|
[gadfly.sql_types] |
|
* = config.Namespace('peak.sql_types') |
|
|
|
[cx_Oracle.sql_types] |
|
* = config.Namespace('peak.sql_types') |
|
|
|
[DCOracle2.sql_types] |
|
* = config.Namespace('peak.sql_types') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shellcmd = "peak.naming.factories.shellcmd:ShellCommandURL" |
|
|
|
|
|
[peak.metamodels.mof1.3.writers] |
[peak.metamodels.mof1.3.writers] |
|
|
|
|
|
|
|
[peak.running] |
|
|
|
# peak.running.mainLoop.signalHandler is used while the standard MainLoop runs |
|
mainLoop.signalHandler = |
|
importString('peak.running.scheduler:StopOnStandardSignals')(targetObj) |
|
|
|
# This setting only affects the 'UntwistedReactor' |
|
reactor.checkInterval = 3600 # if no scheduled tasks, do 1 select/hour |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 'EventDriven' runs a 'running.commands.EventDriven' application, configured |
# 'EventDriven' runs a 'running.commands.EventDriven' application, configured |
# via a ZConfig file using the 'peak.runnning/EventDriven.xml' schema. This |
# via a ZConfig file using the 'peak.runnning/EventDriven.xml' schema. This |
# only supports PEAK built-in task types, so if you add your own task types |
# only supports PEAK built-in task types, so if you add your own task types |
# you'll need to create a new schema and have it import EventDriven.xml. |
# you'll need to create a new schema and have it extend EventDriven.xml. |
EventDriven = |
EventDriven = |
naming.LinkRef('zconfig.schema:pkgfile:peak.running/EventDriven.xml') |
naming.LinkRef('zconfig.schema:pkgfile:peak.running/EventDriven.xml') |
|
|
|
|
|
|
|
|
|
# 'supervise' multiprocess manager |
|
supervise = |
|
naming.LinkRef('zconfig.schema:pkgfile:peak.running/Supervisor.xml') |
|
|
|
# 'FastCGI' port listener |
|
FastCGI = importString('peak.running.supervisor:FCGITemplateCommand') |
|
|
|
|
|
# PEAK versioning tool |
|
|
|
version-config = |
|
importString('peak.running.commands:Alias')( |
|
targetObj, |
|
command = [ |
|
'runIni', |
|
config.fileNearModule('peak.running.tools.version','version.ini') |
|
] |
|
) |
|
|
|
|
|
|
[peak.logs] |
[peak.logs] |
|
|
# Routing for peak-supplied log messages - default is to log WARNING or |
# Routing for peak-supplied log messages - default is to log WARNING or |
|
|
* = logs.LogStream(stream=importString('sys.stderr'), level=logs.WARNING) |
* = logs.LogStream(stream=importString('sys.stderr'), level=logs.WARNING) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Provide Utilities] |
[Provide Utilities] |
|
|
# "Provide Utilities" sections define utilities by mapping from an import |
# "Provide Utilities" sections define utilities by mapping from an import |
|
|
# Some similar services for peak.running: |
# Some similar services for peak.running: |
|
|
|
peak.running.interfaces.ISignalManager = |
|
config.provideInstance('peak.running.process.SignalManager') |
|
|
peak.running.interfaces.IMainLoop = |
peak.running.interfaces.IMainLoop = |
config.provideInstance('peak.running.scheduler.MainLoop') |
config.provideInstance('peak.running.scheduler.MainLoop') |
|
|
peak.running.interfaces.ITwistedReactor = |
peak.running.interfaces.ITwistedReactor = |
config.provideInstance('peak.running.scheduler.getTwisted') |
config.provideInstance('peak.running.scheduler.getTwisted') |
|
|
|
|
|
|
|
|
|
|
[__main__] |
[__main__] |
# The '__main__' namespace will be used by PEAK for global settings that |
# The '__main__' namespace will be used by PEAK for global settings that |
# can be set either in the application's main startup script (i.e. the |
# can be set either in the application's main startup script (i.e. the |
# namespace, so that anything not supplied by the startup script will |
# namespace, so that anything not supplied by the startup script will |
# be supplied by the environment. |
# be supplied by the environment. |
|
|
* = config.getProperty( |
* = config.Namespace('environ.*') |
propertyMap, 'environ.'+propertyName.split('.',1)[1], default=NOT_FOUND |
|
) |
|
|
|
[Load Settings From] |
[Load Settings From] |
# "Load Settings From" sections are processed in-line to load settings from |
# "Load Settings From" sections are processed in-line to load settings from |
propertyMap, '__main__.PEAK_CONFIG', default='' |
propertyMap, '__main__.PEAK_CONFIG', default='' |
).split(importString('os.pathsep')) |
).split(importString('os.pathsep')) |
|
|
|
|
|
|