[asterisk-commits] jpeeler: branch jpeeler/event_watcher r287 - /asterisk/team/jpeeler/event_wat...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed May 5 18:36:18 CDT 2010
Author: jpeeler
Date: Wed May 5 18:36:15 2010
New Revision: 287
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=287
Log:
forgot these changes
Modified:
asterisk/team/jpeeler/event_watcher/lib/python/client.py
Modified: asterisk/team/jpeeler/event_watcher/lib/python/client.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/jpeeler/event_watcher/lib/python/client.py?view=diff&rev=287&r1=286&r2=287
==============================================================================
--- asterisk/team/jpeeler/event_watcher/lib/python/client.py (original)
+++ asterisk/team/jpeeler/event_watcher/lib/python/client.py Wed May 5 18:36:15 2010
@@ -106,7 +106,7 @@
self.send_event_list = list()
self.ordered = False
- def __init__(self):
+ def __init__(self, myargv):
self.log = logging.getLogger('TestAMI')
self.log.setLevel(logging.INFO)
self.ami = None
@@ -114,7 +114,11 @@
self.passed = True
self.call_id = None
self.timeout_sec = 5
- self.standalone = False
+
+ if len(myargv) == 1:
+ self.standalone = True
+ else:
+ self.standalone = False
self.reactor_lock = threading.Lock()
self.reactor_stopped = False
More information about the asterisk-commits
mailing list