From ade10e0b8e5571e45cdd4800927c24597e2f7315 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Sun, 12 Aug 2007 04:21:38 +0000 Subject: added listener/notify --- portato/plugin.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'portato/plugin.py') diff --git a/portato/plugin.py b/portato/plugin.py index 3b065b9..baa5d0c 100644 --- a/portato/plugin.py +++ b/portato/plugin.py @@ -133,6 +133,9 @@ class Hook: @param connects: the list of 's @type connects: NodeList""" + if not connects: # no connects - assume "before" connect + self.connects.append(Connect(self, "before", None)) + for c in connects: type = c.getAttribute("type") if type == '': -- cgit v1.2.3