summaryrefslogtreecommitdiffstats
path: root/ipalib/crud.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-07-20 01:29:59 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-07-20 01:29:59 +0000
commit7acf12e988f45d503d7d93f03f706618f7696504 (patch)
tree32d5b046e95ae2f46b587ac10bb60c6dc7d28b16 /ipalib/crud.py
parentccd8eb3373b0b195c1bc6efd8650320419c709a6 (diff)
downloadfreeipa-7acf12e988f45d503d7d93f03f706618f7696504.tar.gz
freeipa-7acf12e988f45d503d7d93f03f706618f7696504.tar.xz
freeipa-7acf12e988f45d503d7d93f03f706618f7696504.zip
10: Updated base.API to reflect the fact that base.Object is now the new unit of plugin functionality; updated corresponding unit tests
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r--ipalib/crud.py24
1 files changed, 9 insertions, 15 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py
index afbad47ac..c20b4cc16 100644
--- a/ipalib/crud.py
+++ b/ipalib/crud.py
@@ -23,15 +23,15 @@ Base classes for objects with CRUD functionality.
import base
-class create(base.Command):
+class add(base.Command):
pass
-class retrieve(base.Command):
+class get(base.Command):
pass
-class update(base.Command):
+class edit(base.Command):
pass
@@ -39,22 +39,16 @@ class delete(base.Command):
pass
-class search(base.Command):
+class find(base.Command):
pass
-class user(base.Object):
+class CrudLike(base.Object):
def get_commands(self):
return [
- create,
- retrieve,
- update,
+ add,
+ get,
+ edit,
delete,
- ]
-
- def get_attributes(self):
- return [
- givenName,
- sn,
- login,
+ find,
]