mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
better docstrings
This commit is contained in:
parent
5a8e5b0123
commit
90d075040e
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,7 @@ class PPolicy:
|
|||
:param config: the configuration of the ppolicy
|
||||
:type config: hash {'config key': 'value'}
|
||||
:param logger: the cherrypy error logger object
|
||||
"type logger: python logger
|
||||
:type logger: python logger
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -48,6 +48,8 @@ class PPolicy:
|
|||
if param is not in configuration and default
|
||||
is None (which is the default value).
|
||||
:type default: string or None
|
||||
:rtype: the value of the parameter or the default value if
|
||||
not set in configuration
|
||||
"""
|
||||
if param in self.config:
|
||||
return self.config[param]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue