diff options
| author | Devendra | 2013-10-06 14:39:59 +0530 | 
|---|---|---|
| committer | Devendra | 2013-10-06 14:39:59 +0530 | 
| commit | 7ec3bbe414abe58072fda63f4f9c801f77b292e1 (patch) | |
| tree | cec04de1825d9fab4887e40d88aa0136937fb442 /python-tornado/examples/here-now-example.py | |
| parent | 09d6ea1fa20f87dc648740ffb2a70f67e7e4efa9 (diff) | |
| download | pubnub-python-7ec3bbe414abe58072fda63f4f9c801f77b292e1.tar.bz2 | |
changing timeout from 200 to 310 s, changed exception handling to not silently eat execeptions in callback
Diffstat (limited to 'python-tornado/examples/here-now-example.py')
| -rw-r--r-- | python-tornado/examples/here-now-example.py | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/python-tornado/examples/here-now-example.py b/python-tornado/examples/here-now-example.py index 4105776..85e3432 100644 --- a/python-tornado/examples/here-now-example.py +++ b/python-tornado/examples/here-now-example.py @@ -11,6 +11,8 @@  import sys  import tornado +sys.path.append('..') +sys.path.append('../../common')  from Pubnub import Pubnub  publish_key   = len(sys.argv) > 1 and sys.argv[1] or 'demo' @@ -30,7 +32,7 @@ crazy  = 'hello_world'  ## -----------------------------------------------------------------------  def here_now_complete(messages):      print(messages) -    tornado.ioloop.IOLoop.instance().stop() +    pubnub.stop()  pubnub.here_now( {      'channel'  : crazy, @@ -40,4 +42,4 @@ pubnub.here_now( {  ## -----------------------------------------------------------------------  ## IO Event Loop  ## ----------------------------------------------------------------------- -tornado.ioloop.IOLoop.instance().start() +pubnub.start() | 
