From: Enrico Zini Date: Sun, 14 Jun 2009 03:32:16 +0000 (+0800) Subject: Do not shutdown non-resources X-Git-Url: https://git.toastfreeware.priv.at/gregoa/zavai.git/commitdiff_plain/e771511a6a8c959f7740ec32b63922782f898bec?hp=e51db273937e7ff7f8005eadd8def89e24d03c8d Do not shutdown non-resources --- diff --git a/zavai/registry.py b/zavai/registry.py index cc2a1c0..1694196 100644 --- a/zavai/registry.py +++ b/zavai/registry.py @@ -92,7 +92,8 @@ class Registry(object): After shutting down, all objects cannot be used anymore""" for o in self.objects.itervalues(): - o.shutdown() + if isinstance(o, Resource): + o.shutdown() self.objects.clear() class Resource(object):