From 314fe71787901225929bf18c20bd0376310b8ca1 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Tue, 5 Jan 2010 13:38:20 +0100 Subject: Allow creation of new connections by unshared instances of backend.Connectible. --- ipalib/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/request.py') diff --git a/ipalib/request.py b/ipalib/request.py index d2c39c91..f21ac03c 100644 --- a/ipalib/request.py +++ b/ipalib/request.py @@ -52,10 +52,10 @@ def destroy_context(): """ Delete all attributes on thread-local `request.context`. """ + # need to use .items(), 'cos value.disconnect modifies the dict for (name, value) in context.__dict__.items(): if isinstance(value, Connection): value.disconnect() - delattr(context, name) def ugettext(message): -- cgit