summaryrefslogtreecommitdiffstats
path: root/ipalib/__init__.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-17 20:50:34 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-17 20:50:34 -0600
commitf1eb74e22cadf3a9f4ac991e0f8b922f6fb56d1e (patch)
treed860008173983e8f91b385cb9816d19fa08cfd7d /ipalib/__init__.py
parent8322138f38a4f9c826e4ab148a4fee7df5e93b34 (diff)
downloadfreeipa-f1eb74e22cadf3a9f4ac991e0f8b922f6fb56d1e.tar.gz
freeipa-f1eb74e22cadf3a9f4ac991e0f8b922f6fb56d1e.tar.xz
freeipa-f1eb74e22cadf3a9f4ac991e0f8b922f6fb56d1e.zip
make-test now runs doctests also; fixed several broken doctests
Diffstat (limited to 'ipalib/__init__.py')
-rw-r--r--ipalib/__init__.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/ipalib/__init__.py b/ipalib/__init__.py
index 92544e104..4593e581d 100644
--- a/ipalib/__init__.py
+++ b/ipalib/__init__.py
@@ -27,30 +27,6 @@ To learn about the ``ipalib`` library, you should read the code in this order:
2. Learn about the base classes for frontend plugins in `frontend`.
3. Learn about the core plugin framework in `plugable`.
-
-Here is a short console example on using the plugable API:
-
->>> from ipalib import api
->>> list(api.register) # Plugins must subclass from one of these base classes:
-['Command', 'Method', 'Object', 'Property']
->>> 'user_add' in api.register.Command # Has 'user_add' been registered?
-False
->>> import ipalib.load_plugins # This causes all plugins to be loaded
->>> 'user_add' in api.register.Command # Yes, 'user_add' has been registered:
-True
->>> list(api) # API is empty till finalize() is called:
-[]
->>> api.finalize() # Instantiates plugins, builds API namespaces:
->>> list(api) # Lists the namespaces in the API:
-['Command', 'Method', 'Object', 'Property']
->>> 'user_add' in api.Command # Yes, the 'user_add' command exists:
-True
->>> api['Command'] is api.Command # Access as dict item or as attribute:
-True
->>> list(api.Command) # List available commands:
-['discover', 'group_add', 'group_del', 'group_find', 'group_mod', 'krbtest', 'service_add', 'service_del', 'service_find', 'service_mod', 'user_add', 'user_del', 'user_find', 'user_mod']
->>> list(api.Command.user_add) # List public methods for user_add:
-['__call__', 'default', 'execute', 'get_doc', 'normalize', 'options', 'validate']
"""
import plugable