Commit Graph

14 Commits

Author SHA1 Message Date
Avital Oliver
98c5efd8f1 Prerequisites for python-ddp-client 2013-05-06 12:13:02 -07:00
David Glasser
0021307708 Updates to Python DDP client.
- Implement version handshake.

- Use a condition variable instead of sleep(0).

- Don't crash on 'added' with no fields.

- Include 'reason' when connection is closed.

- If our code throws an exception, make sure to print it before killing the main
  thread.

- Don't print a KeyboardInterrupt traceback on Ctrl-C or
  kill-due-to-connection-close. (ie, don't print two tracebacks if the thread
  throws.)
2013-02-12 11:40:43 -08:00
David Glasser
3f2aad7c0e Rename subscription "complete" to "ready" everywhere (including in the
protocol and the publisher API).

Also update examples/other/quiescence for ddp-pre1.
2013-01-30 13:34:58 -08:00
Naomi Seyfer
677a43fe19 Updated python DDP client to ddp-pre1 2013-01-17 15:23:24 -05:00
Avital Oliver
d6bc56d255 New oauth login flow
Also, some code reorganization and bugfix for IE7
2012-07-23 17:57:10 -07:00
Avital Oliver
6862557742 Some more refactoring of python-ddp-client
- Properly split the code between DDPClient, which is solely
  in charge of communication; and App, which is solely in charge
  of implementing the shell
- Fixed a bug with not waiting for a failed method call to complete
  before showing the prompt again
- Changed references to createApp into reference to vote, as to
  discourage accidental creation of bad apps on madewith.meteor.com
2012-05-13 12:57:01 -07:00
Lincoln de Sousa
95b35239eb Moving the block_until_return method from APP to the DDPClient 2012-05-13 03:08:01 -03:00
Lincoln de Sousa
58c66a4a98 Updating the pending operation label when sending the msg (pyddp client) 2012-05-13 02:13:44 -03:00
Lincoln de Sousa
e3c69efda3 Using the line param in the help command (py-ddp-client) 2012-05-13 02:09:12 -03:00
Lincoln de Sousa
dd0afc32bd Various small pythonic improvements in the ddp-client 2012-05-13 02:09:08 -03:00
Lincoln de Sousa
39c4bdb72f Replacing print >> statements by sys.stderr.write + string format 2012-05-13 01:58:50 -03:00
Lincoln de Sousa
44cd072c77 Small refactoring for the wait command
Now, instead of having a custom "wait" fuction for each command (sub and
method) we now have a single method for this with a small test for the
kind of operation.
2012-05-13 01:58:46 -03:00
Avital Oliver
ffcf942447 Fix python-ddp-client's test_input 2012-05-10 18:56:13 -07:00
Avital Oliver
10092efab5 Inital commit of a Python DDP client 2012-05-10 18:53:00 -07:00