0.96不支持client对象,先Login再提交数据。因此,参照trunk,改写了Client def login_new(self, **credentials): """Set the Client to appear as if it has sucessfully logged into a site. Returns True if login is possible; False if the provided credentials are incorrect, or the user is inactive, ...
  • 16:38
  • 浏览 (80)
  • 评论 (0)
首先试用了pyactivemq,不过这个代码在windows下测试用例都过不去。在linux下可以测试过,但是Durable..的测试程序工作不正常,ActiveMQ总是报无法从store中回复数据。 只好试stomp库。这个库的例程有些问题。我改了一下,我希望的功能可以用。 listener应该这样写: class MyListener(stomp.ConnectionListener): def on_error(self, headers, message): print 'received an error %s' % message ...
  • 22:53
  • 浏览 (98)
  • 评论 (0)
客户端: import xmlrpclib,time server = xmlrpclib.ServerProxy("http://localhost:8888") for i in range(1,10): a = time.time() month = server.getMonth( 2002, i ) month = server.getMonth( 2002, i ) month = server.getMonth( 2002, i ) month = server.getMonth( 2002, i ) month = server. ...
  • 14:39
  • 浏览 (112)
  • 评论 (0)
tailorcai
搜索本博客
最近加入圈子
存档
最新评论