From c46a0ccb0d2330018aad92de9bdfbe4fb62e5492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Peters?= Date: Fri, 12 Dec 2008 17:51:42 +0100 Subject: [PATCH] restore class on objects --- extra/modules/stores.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extra/modules/stores.py b/extra/modules/stores.py index f1c3a0f..2fb722b 100644 --- a/extra/modules/stores.py +++ b/extra/modules/stores.py @@ -57,6 +57,12 @@ class InheritingIdentityStore(authentic.identities.IdentitiesStoreStorage): return identity return None + def get_filename(cls, filename, ignore_errors = False): + t = cls.get_filename(cls, filename, ignore_errors = ignore_errors) + if t: + t.__class__ = self.identity_class + return t + class ParthenayIdentityStore(InheritingIdentityStore): def get_identity_for_account(self, account):