Handle dictproxies.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 24 Jul 2015 13:32:31 +0000 (15:32 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 24 Jul 2015 13:32:31 +0000 (15:32 +0200)
didex/store.py

index 55dc71e..cc97a5b 100644 (file)
@@ -42,7 +42,7 @@ def storedescs(obj):
             for nm, val in st.__dict__.items():
                 if isinstance(val, storedesc):
                     ret.append((nm, val))
-        t.__dict__["__didex_attr"] = ret
+        t.__didex_attr = ret
     return ret
 
 class datastore(object):