diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-25 03:47:22 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-25 03:47:22 +0000 |
commit | 55ba8e9d0b86bf25a2cbb7a3a603d796e7a2be2b (patch) | |
tree | 62a5ac3ab350d90ae44dbeae046bcf34f0677346 /ipalib/crud.py | |
parent | ddbe3ae934020fc858f6834a923222c465eba22c (diff) | |
download | freeipa-55ba8e9d0b86bf25a2cbb7a3a603d796e7a2be2b.tar.gz freeipa-55ba8e9d0b86bf25a2cbb7a3a603d796e7a2be2b.tar.xz freeipa-55ba8e9d0b86bf25a2cbb7a3a603d796e7a2be2b.zip |
365: Implemented find.get_args(), find.get_options(); added corresponding unit tests
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r-- | ipalib/crud.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py index 40b6bd78..5021d06d 100644 --- a/ipalib/crud.py +++ b/ipalib/crud.py @@ -48,6 +48,10 @@ class Mod(frontend.Method): yield param.__clone__(required=False) - class Find(frontend.Method): - pass + def get_args(self): + yield self.obj.primary_key + + def get_options(self): + for param in self.obj.params_minus_pk(): + yield param.__clone__(required=False) |