summaryrefslogtreecommitdiffstats
path: root/ipalib/backend.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-07-10 16:43:47 -0400
committerRob Crittenden <rcritten@redhat.com>2009-07-10 16:44:22 -0400
commit0e29dd7226119e69f3bf123395251140ad4260ca (patch)
tree68f423b62a64b2fecc692eb6b95af945c2597e21 /ipalib/backend.py
parente31d5fb1cfc7b7b2ed47202e0ef1c462f01a046b (diff)
downloadfreeipa-0e29dd7226119e69f3bf123395251140ad4260ca.tar.gz
freeipa-0e29dd7226119e69f3bf123395251140ad4260ca.tar.xz
freeipa-0e29dd7226119e69f3bf123395251140ad4260ca.zip
Add textui function to display and prompt user for selection for *-find.
Since we may end up executing a *-show when an entry is selected we need to defer destroying the connection context.
Diffstat (limited to 'ipalib/backend.py')
-rw-r--r--ipalib/backend.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/backend.py b/ipalib/backend.py
index 0c93b16e6..da7fc2922 100644
--- a/ipalib/backend.py
+++ b/ipalib/backend.py
@@ -102,6 +102,9 @@ class Executioner(Backend):
else:
self.Backend.xmlclient.connect()
+ def destroy_context(self):
+ destroy_context()
+
def execute(self, _name, *args, **options):
error = None
try:
@@ -115,7 +118,6 @@ class Executioner(Backend):
'non-public: %s: %s', e.__class__.__name__, str(e)
)
error = InternalError()
- destroy_context()
if error is None:
return result
assert isinstance(error, PublicError)