lib/bb/event.py:
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 25 Feb 2006 15:46:31 +0000 (15:46 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 25 Feb 2006 15:46:31 +0000 (15:46 +0000)
    The Data Module is not a simple dict anymore. So use
    the bb.data.init() method to create a default data
    storage.

lib/bb/event.py

index c8f2e8b..82d4a05 100644 (file)
@@ -117,7 +117,7 @@ def getName(e):
 class PkgBase(Event):
     """Base class for package events"""
 
-    def __init__(self, t, d = {}):
+    def __init__(self, t, d = bb.data.init()):
         self._pkg = t
         Event.__init__(self, d)