From: Michael Tremer Date: Thu, 29 Apr 2010 14:47:52 +0000 (+0200) Subject: Add shortcut to add events from main class. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded2591de783614b0dcaab9fc7237401795a5719;p=oddments%2Fcappie.git Add shortcut to add events from main class. --- diff --git a/cappie/__init__.py b/cappie/__init__.py index 01737d1..44c7ac1 100644 --- a/cappie/__init__.py +++ b/cappie/__init__.py @@ -186,3 +186,5 @@ class Interface(Thread): def filter(self): return "arp or rarp" + def addEvent(self, event): + return self.cappie.queue.add(event)