summaryrefslogtreecommitdiffstats
path: root/ipalib/crud.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-09 11:33:35 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-09 11:33:35 -0600
commit87390665f6998116ec2429773088c7165e281611 (patch)
tree43e1c04030abb97bef69ce685617980029378818 /ipalib/crud.py
parent887016e69d6678892a2ff53735623ce5d413b074 (diff)
downloadfreeipa-87390665f6998116ec2429773088c7165e281611.tar.gz
freeipa-87390665f6998116ec2429773088c7165e281611.tar.xz
freeipa-87390665f6998116ec2429773088c7165e281611.zip
crud.Add.get_args() and get_options() now yield static values in takes_args, takes_options after the automagic ones
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r--ipalib/crud.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py
index 9f9d727fd..1bdd03f83 100644
--- a/ipalib/crud.py
+++ b/ipalib/crud.py
@@ -27,10 +27,14 @@ import frontend, errors
class Add(frontend.Method):
def get_args(self):
yield self.obj.primary_key
+ for arg in self.takes_args:
+ yield arg
def get_options(self):
for param in self.obj.params_minus_pk():
yield param
+ for option in self.takes_options:
+ yield option
class Get(frontend.Method):