diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-10-14 22:22:01 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-10-14 22:22:01 -0400 |
commit | cfc8450efd92dc0fb6648e97b27416c67625adfb (patch) | |
tree | 8df315efa8690de696c89172a971b9f8dd9f861c /ipalib/crud.py | |
parent | 1c3f81852cb8337e2305f968be5bd8165997d27e (diff) | |
download | freeipa-cfc8450efd92dc0fb6648e97b27416c67625adfb.tar.gz freeipa-cfc8450efd92dc0fb6648e97b27416c67625adfb.tar.xz freeipa-cfc8450efd92dc0fb6648e97b27416c67625adfb.zip |
Port user-show to new CrudBackend framework
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r-- | ipalib/crud.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py index 5a60ac8c6..5cd7b0a41 100644 --- a/ipalib/crud.py +++ b/ipalib/crud.py @@ -87,12 +87,14 @@ class CrudBackend(backend.Backend): """ raise NotImplementedError('%s.create()' % self.name) - def retrieve(self, primary_key): + def retrieve(self, primary_key, attributes): """ Retrieve an existing entry. - This method should take a single argument, the primary_key of the - entry in question. + This method should take a two arguments: the primary_key of the + entry in question and a list of the attributes to be retrieved. + If the list of attributes is None then all non-operational + attributes will be returned. If such an entry exists, this method should return a dict representing that entry. If no such entry exists, this method |