summaryrefslogtreecommitdiffstats
path: root/ipalib/crud.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-25 02:13:16 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-25 02:13:16 +0000
commit023f612921b4d9cbd15e3148d09c02932a61d73e (patch)
treec057625096fa46123f653876e7d20760237e8119 /ipalib/crud.py
parent9f704e001daf760de92c590f69582fc7ffd0c0f2 (diff)
downloadfreeipa-023f612921b4d9cbd15e3148d09c02932a61d73e.tar.gz
freeipa-023f612921b4d9cbd15e3148d09c02932a61d73e.tar.xz
freeipa-023f612921b4d9cbd15e3148d09c02932a61d73e.zip
361: Implemented crud.Add.get_options() method; added corresponding unit tests
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r--ipalib/crud.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py
index 9f410fdea..bdcf30478 100644
--- a/ipalib/crud.py
+++ b/ipalib/crud.py
@@ -25,7 +25,9 @@ import frontend, errors
class Add(frontend.Method):
- pass
+ def get_options(self):
+ assert 'params' in self.obj, list(self.obj)
+ return self.obj.params()
class Get(frontend.Method):