From 87390665f6998116ec2429773088c7165e281611 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 9 Oct 2008 11:33:35 -0600 Subject: crud.Add.get_args() and get_options() now yield static values in takes_args, takes_options after the automagic ones --- ipalib/crud.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipalib') diff --git a/ipalib/crud.py b/ipalib/crud.py index 9f9d727fd..1bdd03f83 100644 --- a/ipalib/crud.py +++ b/ipalib/crud.py @@ -27,10 +27,14 @@ import frontend, errors class Add(frontend.Method): def get_args(self): yield self.obj.primary_key + for arg in self.takes_args: + yield arg def get_options(self): for param in self.obj.params_minus_pk(): yield param + for option in self.takes_options: + yield option class Get(frontend.Method): -- cgit