mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
366: Ported user_* example Commands to crud base classes; added user_show example command
This commit is contained in:
parent
55ba8e9d0b
commit
ac88500382
@ -23,6 +23,7 @@ Some example plugins.
|
||||
|
||||
|
||||
from ipalib import frontend
|
||||
from ipalib import crud
|
||||
from ipalib.frontend import Param
|
||||
from ipalib import api
|
||||
|
||||
@ -58,22 +59,26 @@ api.register(discover)
|
||||
|
||||
|
||||
# Register some methods for the 'user' object:
|
||||
class user_add(frontend.Method):
|
||||
class user_add(crud.Add):
|
||||
'Add a new user.'
|
||||
api.register(user_add)
|
||||
|
||||
class user_del(frontend.Method):
|
||||
class user_del(crud.Del):
|
||||
'Delete an existing user.'
|
||||
api.register(user_del)
|
||||
|
||||
class user_mod(frontend.Method):
|
||||
class user_mod(crud.Mod):
|
||||
'Edit an existing user.'
|
||||
api.register(user_mod)
|
||||
|
||||
class user_find(frontend.Method):
|
||||
class user_find(crud.Find):
|
||||
'Search the users.'
|
||||
api.register(user_find)
|
||||
|
||||
class user_show(crud.Get):
|
||||
'Examine an existing user.'
|
||||
api.register(user_show)
|
||||
|
||||
|
||||
# Register some properties for the 'user' object:
|
||||
#class user_givenname(frontend.Property):
|
||||
|
Loading…
Reference in New Issue
Block a user