summaryrefslogtreecommitdiffstats
path: root/ipalib/crud.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r--ipalib/crud.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py
index 6194b3fa7..60c605dd9 100644
--- a/ipalib/crud.py
+++ b/ipalib/crud.py
@@ -46,6 +46,11 @@ class Del(frontend.Method):
def get_args(self):
yield self.obj.primary_key
+ def get_options(self):
+ for param in self.obj.params_minus_pk():
+ yield param
+ for option in self.takes_options:
+ yield option
class Mod(frontend.Method):
def get_args(self):
@@ -54,6 +59,8 @@ class Mod(frontend.Method):
def get_options(self):
for param in self.obj.params_minus_pk():
yield param.__clone__(required=False)
+ for option in self.takes_options:
+ yield option
class Find(frontend.Method):