diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-14 22:35:13 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-14 22:35:13 -0700 |
commit | a10144be247d109e0bcfb4d5b7812bef508ab8d6 (patch) | |
tree | 4e2a30657c589e3650df7056f9a8d8d437f6fbc9 /ipalib | |
parent | 86b7ebf717a99276a135a5888246cee99798a94b (diff) | |
download | freeipa-a10144be247d109e0bcfb4d5b7812bef508ab8d6.tar.gz freeipa-a10144be247d109e0bcfb4d5b7812bef508ab8d6.tar.xz freeipa-a10144be247d109e0bcfb4d5b7812bef508ab8d6.zip |
Updated service plugins module to where it can at least be imported
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/f_service.py | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/ipalib/plugins/f_service.py b/ipalib/plugins/f_service.py index a353d52e9..06d6a5d08 100644 --- a/ipalib/plugins/f_service.py +++ b/ipalib/plugins/f_service.py @@ -22,27 +22,30 @@ Frontend plugins for service (Identity). """ -from ipalib import frontend -from ipalib import crud -from ipalib.frontend import Param -from ipalib import api -from ipalib import errors -from ipalib import ipa_types - -class service(frontend.Object): +from ipalib import api, crud, errors +from ipalib import Object # Plugin base classes +from ipalib import Str, Flag # Parameter types + + +class service(Object): """ Service object. """ takes_params = ( - Param('principal', primary_key=True), + Str('principal', primary_key=True), ) api.register(service) class service_add(crud.Add): - 'Add a new service.' + """ + Add a new service. + """ + takes_options = ( - Param('force?', type=ipa_types.Bool(), default=False, doc='Force a service principal name'), + Flag('force', + doc='Force a service principal name', + ), ) def execute(self, principal, **kw): """ |