summaryrefslogtreecommitdiff
path: root/portato/plugin.py
diff options
context:
space:
mode:
authornecoro <>2007-08-12 04:21:38 +0000
committernecoro <>2007-08-12 04:21:38 +0000
commitade10e0b8e5571e45cdd4800927c24597e2f7315 (patch)
treeff2d39f0366a7238366abd3c77b739996ed8937a /portato/plugin.py
parenta6a5cace4864c37b7a820c89540f85069d842521 (diff)
downloadportato-ade10e0b8e5571e45cdd4800927c24597e2f7315.tar.gz
portato-ade10e0b8e5571e45cdd4800927c24597e2f7315.tar.bz2
portato-ade10e0b8e5571e45cdd4800927c24597e2f7315.zip
added listener/notify
Diffstat (limited to 'portato/plugin.py')
-rw-r--r--portato/plugin.py3
1 files changed, 3 insertions, 0 deletions
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 <connect>'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 == '':