summaryrefslogtreecommitdiffstats
path: root/ipalib/base.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-07-20 18:36:02 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-07-20 18:36:02 +0000
commit14339cfae01b843949d0f9972670f56f952a5faa (patch)
treef37c378ee0ba619424f654bf345aa4faa30c7630 /ipalib/base.py
parent89e9b7eaeca5e96d0fdeddf76fd74a2176d96d6f (diff)
downloadfreeipa-14339cfae01b843949d0f9972670f56f952a5faa.tar.gz
freeipa-14339cfae01b843949d0f9972670f56f952a5faa.tar.xz
freeipa-14339cfae01b843949d0f9972670f56f952a5faa.zip
20: Updated example plugins, added '_api_' command to ipa script with prints the api
Diffstat (limited to 'ipalib/base.py')
-rw-r--r--ipalib/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/base.py b/ipalib/base.py
index 4731a872e..3c302369f 100644
--- a/ipalib/base.py
+++ b/ipalib/base.py
@@ -158,7 +158,8 @@ class WithObj(Named):
class Command(WithObj):
- pass
+ def __call__(self):
+ print 'You called %s()' % self.name
class Property(WithObj):
pass