vregistry.py
changeset 2820 66b31686d92b
parent 2788 8d3dbe577d3a
child 2821 526f44213b70
--- a/vregistry.py	Thu Aug 13 11:49:56 2009 +0200
+++ b/vregistry.py	Thu Aug 13 11:54:19 2009 +0200
@@ -78,9 +78,7 @@
             appobjects = self[oid] =  []
         else:
             appobjects = self.setdefault(oid, [])
-        # registered() is technically a classmethod but is not declared
-        # as such because we need to compose registered in some cases
-        appobject = obj.registered.im_func(obj, self)
+        appobject = obj.__registered__(self)
         assert not appobject in appobjects, \
                'object %s is already registered' % appobject
         assert callable(appobject.__select__), appobject