Author: dmeyer
Date: Tue Apr  3 19:43:04 2007
New Revision: 9422

Modified:
   trunk/ui/src/event.py

Log:
fix that args are not read as event_source

Modified: trunk/ui/src/event.py
==============================================================================
--- trunk/ui/src/event.py       (original)
+++ trunk/ui/src/event.py       Tue Apr  3 19:43:04 2007
@@ -60,12 +60,12 @@
         return int(self.name[-1])
 
 
-    def post(self, event_source='system', *args):
+    def post(self, *args, **kwargs):
         """
         Post event into the queue.
         """
         event = copy.copy(self)
-        event.source = event_source
+        event.source = kwargs.get('event_source', 'system')
         if args:
             event._set_args(args)
         kaa.notifier.Event.post(event)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to