--- a/server/repository.py Fri Feb 10 10:45:17 2012 +0100
+++ b/server/repository.py Fri Feb 10 16:20:35 2012 +0100
@@ -120,6 +120,20 @@
{'x': eidfrom, 'y': eidto})
+class NullEventBus(object):
+ def send(self, msg):
+ pass
+
+ def add_subscription(self, topic, callback):
+ pass
+
+ def start(self):
+ pass
+
+ def stop(self):
+ pass
+
+
class Repository(object):
"""a repository provides access to a set of persistent storages for
entities and relations
@@ -134,6 +148,7 @@
self.vreg = vreg
self.pyro_registered = False
self.pyro_uri = None
+ self.app_instances_bus = NullEventBus()
self.info('starting repository from %s', self.config.apphome)
# dictionary of opened sessions
self._sessions = {}