mirror of
https://github.com/kakwa/ldapcherry
synced 2024-12-23 05:10:03 +01:00
better docstrings
This commit is contained in:
parent
5a8e5b0123
commit
90d075040e
@ -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…
x
Reference in New Issue
Block a user