Updating main function.
authorHenry Bilby <henrymiller.engenheiro@gmail.com>
Thu, 21 May 2009 01:07:10 +0000 (21:07 -0400)
committerHenry Bilby <henrymiller.engenheiro@gmail.com>
Thu, 21 May 2009 01:07:10 +0000 (21:07 -0400)
control_point/zukebox_control_point.py

index 9e38e45..c45a6a9 100644 (file)
@@ -14,6 +14,7 @@ zukebox_type = 'urn:schemas-upnp-org:device:ZukeBoxServer:1'
 def on_new_device(dev):
 
     print 'Got new device: ', dev.udn
+    print "Type 'list' to see the whole list"
     if not dev:
         return
 
@@ -38,14 +39,14 @@ def main():
     """
     c = create_control_point()
     c.start()
-    #run_async_function(_handle_cmds, (c, ))
+    run_async_function(_handle_cmds, (c, ))
     reactor.add_after_stop_func(c.stop)
     reactor.main()
 
 def _handle_cmds(c):
     while True:
        try:
-           input= raw_input('(type help)command: ')
+           input= raw_input('(in doubt use help)command: ')
        except KeyboardInterrupt, EOFError:
            c.stop()
            break