summaryrefslogtreecommitdiffstats
path: root/ipalib/crud.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-25 03:47:22 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-25 03:47:22 +0000
commit55ba8e9d0b86bf25a2cbb7a3a603d796e7a2be2b (patch)
tree62a5ac3ab350d90ae44dbeae046bcf34f0677346 /ipalib/crud.py
parentddbe3ae934020fc858f6834a923222c465eba22c (diff)
downloadfreeipa-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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py
index 40b6bd780..5021d06da 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)