diff options
author | Karl MacMillan <kmacmill@redhat.com> | 2007-10-19 15:01:38 -0400 |
---|---|---|
committer | Karl MacMillan <kmacmill@redhat.com> | 2007-10-19 15:01:38 -0400 |
commit | 1685751b1cd67191793f103afe340be540842b1e (patch) | |
tree | 217c9551495fd5c22b15926332b051724a731080 /ipa-server/ipa-gui | |
parent | 5e651a6496848f5ee3f6415ef3b56ca140c88556 (diff) | |
download | freeipa-1685751b1cd67191793f103afe340be540842b1e.tar.gz freeipa-1685751b1cd67191793f103afe340be540842b1e.tar.xz freeipa-1685751b1cd67191793f103afe340be540842b1e.zip |
Remove dependency between ipa-pyton and ipa-server
Current ipa-python imports and calls code from ipaserver (which is in
the ipa-server package). This makes it impossible to use the admin
tools or the ipa-python package on a system without the server bits
installed. This fixes that in a fairly minimal way.
Diffstat (limited to 'ipa-server/ipa-gui')
-rw-r--r-- | ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py b/ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py index 6a8383a58..3a5e06150 100644 --- a/ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py +++ b/ipa-server/ipa-gui/ipagui/subcontrollers/ipacontroller.py @@ -10,6 +10,7 @@ from turbogears import error_handler from turbogears import identity import ipa.ipaclient +from ipaserver import funcs import ipa.config log = logging.getLogger(__name__) @@ -23,7 +24,8 @@ class IPAController(controllers.Controller): raise turbogears.redirect("/") def get_ipaclient(self): - client = ipa.ipaclient.IPAClient(True) + transport = funcs.IPAServer() + client = ipa.ipaclient.IPAClient(transport) client.set_krbccache(os.environ["KRB5CCNAME"]) return client |