mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
372: Started work on docstring for Param class
This commit is contained in:
parent
031daabcc4
commit
8901b9a837
@ -194,17 +194,30 @@ def parse_param_spec(spec):
|
||||
class Param(plugable.ReadOnly):
|
||||
"""
|
||||
A parameter accepted by a `Command`.
|
||||
|
||||
============ ================= ==================
|
||||
Keyword Type Default
|
||||
============ ================= ==================
|
||||
type ipa_type.Type ipa_type.Unicode()
|
||||
doc str ''
|
||||
required bool True
|
||||
multivalue bool False
|
||||
primary_key bool False
|
||||
normalize callable None
|
||||
default same as type.type None
|
||||
default_from callable None
|
||||
============ ================= ==================
|
||||
"""
|
||||
__nones = (None, '', tuple(), [])
|
||||
__defaults = dict(
|
||||
doc='',
|
||||
required=True,
|
||||
multivalue=False,
|
||||
primary_key=False,
|
||||
normalize=None,
|
||||
default=None,
|
||||
default_from=None,
|
||||
rules=tuple(),
|
||||
normalize=None,
|
||||
primary_key=False,
|
||||
)
|
||||
|
||||
def __init__(self, name, type_=ipa_types.Unicode(), **override):
|
||||
|
Loading…
Reference in New Issue
Block a user