diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-20 01:29:59 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-20 01:29:59 +0000 |
commit | 7acf12e988f45d503d7d93f03f706618f7696504 (patch) | |
tree | 32d5b046e95ae2f46b587ac10bb60c6dc7d28b16 /ipalib/crud.py | |
parent | ccd8eb3373b0b195c1bc6efd8650320419c709a6 (diff) | |
download | freeipa-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.py | 24 |
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, ] |