Fixed datastore registration bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 30 Mar 2015 03:45:27 +0000 (05:45 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 30 Mar 2015 03:45:27 +0000 (05:45 +0200)
didex/store.py

index 8481c0f..43c1348 100644 (file)
@@ -107,6 +107,7 @@ class autotype(type):
     def __call__(self, *args, **kwargs):
         new = super().__call__(*args, **kwargs)
         new.id = self.store.register(new)
+        self.store.update(new.id, vfy=new) # This doesn't feel too nice.
         return new
 
 class autostore(object, metaclass=autotype):