summaryrefslogtreecommitdiffstats
path: root/ipa-python/ipaclient.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-04-24 10:25:30 -0400
committerRob Crittenden <rcritten@redhat.com>2008-04-25 10:35:22 -0400
commit12ea8efc0b05f361a5871451cb095753c8c6cc16 (patch)
tree29756a022f9ee691250cc71e2a06165b8938ab8b /ipa-python/ipaclient.py
parent47e6a75cffeeec9e4d0bb9bb73931dd5cdab1a9f (diff)
downloadfreeipa-12ea8efc0b05f361a5871451cb095753c8c6cc16.tar.gz
freeipa-12ea8efc0b05f361a5871451cb095753c8c6cc16.tar.xz
freeipa-12ea8efc0b05f361a5871451cb095753c8c6cc16.zip
Add --verbose option so the HTTP headers and XML request/response can be seen.
Also re-do the way modules are imported. I was attemping to have ^C handled gracefully but the way I did it could mask other problems. 443987
Diffstat (limited to 'ipa-python/ipaclient.py')
-rw-r--r--ipa-python/ipaclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py
index 4fc836953..1cd541c3f 100644
--- a/ipa-python/ipaclient.py
+++ b/ipa-python/ipaclient.py
@@ -25,13 +25,13 @@ import radius_util
class IPAClient:
- def __init__(self,transport=None):
+ def __init__(self,transport=None,verbose=False):
if transport:
self.local = True
self.transport = transport
else:
self.local = False
- self.transport = rpcclient.RPCClient()
+ self.transport = rpcclient.RPCClient(verbose)
def set_principal(self,princ):
"""Set the name of the principal that will be used for