diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-25 03:27:40 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-25 03:27:40 +0000 |
commit | 152f3089e15eec0ce9f7af07450785114a3fcb6e (patch) | |
tree | 3874cba5091b3cf1a4f078bb61decbc92ae4921b /ipalib/frontend.py | |
parent | c303a06a948d1813336161e2546bd85f8edead56 (diff) | |
download | freeipa-152f3089e15eec0ce9f7af07450785114a3fcb6e.tar.gz freeipa-152f3089e15eec0ce9f7af07450785114a3fcb6e.tar.xz freeipa-152f3089e15eec0ce9f7af07450785114a3fcb6e.zip |
363: Added Object.params_minus_pk instance attribute
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 6cf9b5d7b..c95397aa3 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -515,11 +515,13 @@ class Object(plugable.Plugin): 'properties', 'params', 'primary_key', + 'params_minus_pk', )) methods = None properties = None params = None primary_key = None + params_minus_pk = None takes_params = tuple() def set_api(self, api): @@ -543,6 +545,9 @@ class Object(plugable.Plugin): ) if len(pkeys) == 1: self.primary_key = pkeys[0] + self.params_minus_pk = plugable.NameSpace( + filter(lambda p: not p.primary_key, self.params()), sort=False + ) def __get_attrs(self, name): namespace = getattr(self.api, name) |