summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-14 22:35:13 -0700
committerJason Gerard DeRose <jderose@redhat.com>2009-01-14 22:35:13 -0700
commita10144be247d109e0bcfb4d5b7812bef508ab8d6 (patch)
tree4e2a30657c589e3650df7056f9a8d8d437f6fbc9
parent86b7ebf717a99276a135a5888246cee99798a94b (diff)
downloadfreeipa-a10144be247d109e0bcfb4d5b7812bef508ab8d6.tar.gz
freeipa-a10144be247d109e0bcfb4d5b7812bef508ab8d6.tar.xz
freeipa-a10144be247d109e0bcfb4d5b7812bef508ab8d6.zip
Updated service plugins module to where it can at least be imported
-rw-r--r--ipalib/plugins/f_service.py25
1 files changed, 14 insertions, 11 deletions
diff --git a/ipalib/plugins/f_service.py b/ipalib/plugins/f_service.py
index a353d52e..06d6a5d0 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):
"""