Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
f5cc3a37
Commit
f5cc3a37
authored
Jun 29, 2011
by
Jelte Jansen
Browse files
[master] update docstring for ModuleCCSession
mainly to add an explanation for handle_logging_config
parent
31bde63b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/config/ccsession.py
View file @
f5cc3a37
...
...
@@ -142,14 +142,29 @@ class ModuleCCSession(ConfigData):
callbacks are called when 'check_command' is called on the
ModuleCCSession"""
def
__init__
(
self
,
spec_file_name
,
config_handler
,
command_handler
,
cc_session
=
None
,
handle_logging_config
=
False
):
def
__init__
(
self
,
spec_file_name
,
config_handler
,
command_handler
,
cc_session
=
None
,
handle_logging_config
=
False
):
"""Initialize a ModuleCCSession. This does *NOT* send the
specification and request the configuration yet. Use start()
for that once the ModuleCCSession has been initialized.
specfile_name is the path to the specification file
specfile_name is the path to the specification file.
config_handler and command_handler are callback functions,
see set_config_handler and set_command_handler for more
information on their signatures."""
information on their signatures.
cc_session can be used to pass in an existing CCSession,
if it is None, one will be set up. This is mainly intended
for testing purposes.
handle_logging_config: if True, the module session will
automatically handle logging configuration for the module;
it will read the system-wide Logging configuration and call
the logger manager to apply it. It will also inform the
logger manager when the logging configuration gets updated.
The module does not need to do anything except intializing
its loggers, and provide log messages
"""
module_spec
=
isc
.
config
.
module_spec_from_file
(
spec_file_name
)
ConfigData
.
__init__
(
self
,
module_spec
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment