summaryrefslogtreecommitdiffstats
path: root/ipalib/crud.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r--ipalib/crud.py8
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