From 0e29dd7226119e69f3bf123395251140ad4260ca Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 10 Jul 2009 16:43:47 -0400 Subject: 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. --- ipalib/backend.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipalib/backend.py') 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) -- cgit