diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-15 12:24:15 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-15 12:24:15 -0600 |
commit | af7c0ee595bf522a7f52e5e1b6515a3a27292846 (patch) | |
tree | cc9822e5cf636d4d3f979c6a66f8696e618bad9b /ipalib/crud.py | |
parent | e5d0bfa86bdf6ba1ad72241fc135a3fb065578ef (diff) | |
parent | 789a248daa71d5d1377e0dc9f0cd3afe107d4f2a (diff) | |
download | freeipa.git-af7c0ee595bf522a7f52e5e1b6515a3a27292846.tar.gz freeipa.git-af7c0ee595bf522a7f52e5e1b6515a3a27292846.tar.xz freeipa.git-af7c0ee595bf522a7f52e5e1b6515a3a27292846.zip |
Resolved conficts in Rob's merge
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r-- | ipalib/crud.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py index 5a60ac8c..ba4d5718 100644 --- a/ipalib/crud.py +++ b/ipalib/crud.py @@ -70,7 +70,7 @@ class CrudBackend(backend.Backend): Base class defining generic CRUD backend API. """ - def create(self, *kw): + def create(self, **kw): """ Create a new entry. @@ -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 @@ -100,7 +102,7 @@ class CrudBackend(backend.Backend): """ raise NotImplementedError('%s.retrieve()' % self.name) - def update(self, primary_key, *kw): + def update(self, primary_key, **kw): """ Update an existing entry. |