From 62876ccee3ba679adda926b88564732552459619 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 30 Oct 2008 17:25:45 -0400 Subject: Initial implementation of automount support Add argument handling to crud.Del Make get_list handle LDAP scope --- ipalib/crud.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ipalib/crud.py') diff --git a/ipalib/crud.py b/ipalib/crud.py index 6194b3fa..60c605dd 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): -- cgit