diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-04-24 10:25:30 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-04-25 10:35:05 -0400 |
commit | a3a749cf5ea27fe46f12d866b93f94623f698efd (patch) | |
tree | 29756a022f9ee691250cc71e2a06165b8938ab8b /ipa-python/ipaclient.py | |
parent | 5eeb01edc75e4461ccbace0a129d9dfc7f26647a (diff) | |
download | freeipa-a3a749cf5ea27fe46f12d866b93f94623f698efd.tar.gz freeipa-a3a749cf5ea27fe46f12d866b93f94623f698efd.tar.xz freeipa-a3a749cf5ea27fe46f12d866b93f94623f698efd.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.py | 4 |
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 |