vregistry.py
changeset 2658 5535857eeaa5
parent 2657 de974465d381
child 2662 87aed8cb7ff6
--- a/vregistry.py	Mon Aug 03 15:16:47 2009 +0200
+++ b/vregistry.py	Mon Aug 03 15:42:47 2009 +0200
@@ -141,7 +141,7 @@
         """
         objects = self[oid]
         assert len(objects) == 1, objects
-        return objects[0].selected(*args, **kwargs)
+        return objects[0](*args, **kwargs)
 
     def select(self, oid, *args, **kwargs):
         """return the most specific object among those with the given oid
@@ -199,8 +199,8 @@
                 raise Exception('select ambiguity, args: %s\nkwargs: %s %s'
                                 % (args, kwargs.keys(),
                                    [repr(v) for v in winners]))
-        # return the result of the .selected method of the appobject
-        return winners[0].selected(*args, **kwargs)
+        # return the result of calling the appobject
+        return winners[0](*args, **kwargs)
 
 
 class VRegistry(dict):