Fixed constructor
authorEnrico Zini <enrico@enricozini.org>
Mon, 15 Jun 2009 15:19:30 +0000 (23:19 +0800)
committerEnrico Zini <enrico@enricozini.org>
Mon, 15 Jun 2009 15:19:30 +0000 (23:19 +0800)
zavai/registry.py

index ec0a4a2c4f3b29c9bc497de4c6b1bedecc63bf77..3144a899db8cd951d5a91619152f1f8b3370076b 100644 (file)
@@ -161,11 +161,11 @@ class Resource(object):
 
 class Service(Resource):
     "Service that is activated only when someone is listening"
-    def __init__(self):
+    def __init__(self, types = []):
         """
         Initialise a service that can emit signals for the given event types
         """
-        super(Service, self).__init__(types = [])
+        super(Service, self).__init__()
         self.callbacks = dict()
         for t in types:
             self.callbacks[t] = set()