Subversion Repositories SmartDukaan

Rev

Rev 1673 | Rev 1859 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
94 ashish 1
#!/usr/bin/env python
2
#
3
# Autogenerated by Thrift
4
#
5
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
6
#
7
 
8
import sys
9
import pprint
10
from urlparse import urlparse
11
from thrift.transport import TTransport
12
from thrift.transport import TSocket
13
from thrift.transport import THttpClient
14
from thrift.protocol import TBinaryProtocol
15
 
16
import UserContextService
17
from ttypes import *
18
 
19
if len(sys.argv) <= 1 or sys.argv[1] == '--help':
20
  print ''
21
  print 'Usage: ' + sys.argv[0] + ' [-h host:port] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
22
  print ''
23
  print 'Functions:'
765 rajveer 24
  print '  void closeSession()'
559 chandransh 25
  print '  User createAnonymousUser(string jsessionId)'
26
  print '  User getUserById(i64 userId)'
1491 vikas 27
  print '  User getUserByEmail(string email)'
559 chandransh 28
  print '  User createUser(User user)'
29
  print '  User updateUser(User user)'
30
  print '  bool deleteUser(i64 userId)'
31
  print '  UserState getUserState(i64 userId)'
32
  print '  User authenticateUser(string email, string password)'
94 ashish 33
  print '  bool userExists(string email)'
567 rajveer 34
  print '  i64 addAddressForUser(i64 userId, Address address, bool setDefault)'
94 ashish 35
  print '  bool removeAddressForUser(i64 userid, i64 addressId)'
36
  print '  bool setUserAsLoggedIn(i64 userId, i64 timestamp)'
37
  print '  bool setUserAsLoggedOut(i64 userid, i64 timestamp)'
504 rajveer 38
  print '  bool setDefaultAddress(i64 userid, i64 addressId)'
594 rajveer 39
  print '  bool updatePassword(i64 userid, string oldPassword, string newPassword)'
884 rajveer 40
  print '  bool forgotPassword(string email, string newPassword)'
594 rajveer 41
  print '   getAllAddressesForUser(i64 userId)'
42
  print '  i64 getDefaultAddressId(i64 userId)'
785 rajveer 43
  print '  string getDefaultPincode(i64 userId)'
1274 varun.gupt 44
  print '  bool saveUserCommunication(i64 userId, string replyTo, i64 communicationType, i64 orderId, string airwaybillNo, string productName, string subject, string message)'
1590 varun.gupt 45
  print '  UserCommunication getUserCommunicationById(i64 id)'
46
  print '   getUserCommunicationByUser(i64 userId)'
47
  print '   getAllUserCommunications()'
1845 vikas 48
  print '  MasterAffiliate createMasterAffiliate(string name)'
49
  print '  MasterAffiliate getMasterAffiliateById(i64 id)'
50
  print '  MasterAffiliate getMasterAffiliateByName(string name)'
51
  print '  Affiliate createAffiliate(string name, string url, i64 masterAffiliateId)'
52
  print '  Affiliate getAffiliateById(i64 id)'
53
  print '  Affiliate getAffiliateByName(string name)'
54
  print '   getAffiliatesByMasterAffiliate(i64 id)'
55
  print '  Tracker createTracker(i64 affiliateId)'
56
  print '  Tracker getTrackerById(i64 trackerId)'
57
  print '   getTrackersByAffiliate(i64 affiliateId)'
58
  print '  i64 addTrackLog(i64 trackerId, i64 userId, string event, string url, string data)'
59
  print '  TrackLog getTrackLogById(i64 id)'
60
  print '   getTrackLogsByTracker(i64 trackerId)'
61
  print '   getTrackLogsByUser(i64 userId)'
62
  print '   getTrackLogs(i64 trackerId, i64 userId, string event, string url)'
559 chandransh 63
  print '  i64 createCart(i64 userId)'
64
  print '  Cart getCurrentCart(i64 userId)'
65
  print '  Cart getCart(i64 cartId)'
66
  print '   getCartsForUser(i64 userId, CartStatus status)'
67
  print '   getCartsByStatus(CartStatus status)'
68
  print '   getCartsByTime(i64 from_time, i64 to_time, CartStatus status)'
69
  print '  void changeCartStatus(i64 cartId, CartStatus status)'
70
  print '  void addItemToCart(i64 cartId, i64 itemId, i64 quantity)'
71
  print '  void deleteItemFromCart(i64 cartId, i64 itemId)'
72
  print '  void changeQuantity(i64 cartId, i64 itemId, i64 quantity)'
73
  print '  void changeItemStatus(i64 cartId, i64 itemId, LineStatus status)'
74
  print '  void addAddressToCart(i64 cartId, i64 addressId)'
690 chandransh 75
  print '  i64 createOrders(i64 cartId)'
1466 ankur.sing 76
  print '  string validateCart(i64 cartId)'
559 chandransh 77
  print '  void mergeCart(i64 fromCartId, i64 toCartId)'
690 chandransh 78
  print '  bool checkOut(i64 cartId)'
79
  print '  bool resetCart(i64 cartId,  items)'
772 rajveer 80
  print '  Widget getMyResearch(i64 userId)'
81
  print '  bool updateMyResearch(i64 userId, i64 itemId)'
82
  print '  void deleteItemFromMyResearch(i64 userId, i64 itemId)'
83
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
84
  print '  Widget getBrowseHistory(i64 userId)'
85
  print '  void mergeBrowseHistory(i64 fromUserId, i64 toUserId)'
1596 ankur.sing 86
  print '  i64 getUserCount(UserType userType)'
1673 ankur.sing 87
  print '   getAllUsers(UserType userType)'
94 ashish 88
  print ''
89
  sys.exit(0)
90
 
91
pp = pprint.PrettyPrinter(indent = 2)
92
host = 'localhost'
93
port = 9090
94
uri = ''
95
framed = False
96
http = False
97
argi = 1
98
 
99
if sys.argv[argi] == '-h':
100
  parts = sys.argv[argi+1].split(':') 
101
  host = parts[0]
102
  port = int(parts[1])
103
  argi += 2
104
 
105
if sys.argv[argi] == '-u':
106
  url = urlparse(sys.argv[argi+1])
107
  parts = url[1].split(':') 
108
  host = parts[0]
109
  if len(parts) > 1:
110
    port = int(parts[1])
111
  else:
112
    port = 80
113
  uri = url[2]
114
  http = True
115
  argi += 2
116
 
117
if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
118
  framed = True
119
  argi += 1
120
 
121
cmd = sys.argv[argi]
122
args = sys.argv[argi+1:]
123
 
124
if http:
125
  transport = THttpClient.THttpClient(host, port, uri)
126
else:
127
  socket = TSocket.TSocket(host, port)
128
  if framed:
129
    transport = TTransport.TFramedTransport(socket)
130
  else:
131
    transport = TTransport.TBufferedTransport(socket)
132
protocol = TBinaryProtocol.TBinaryProtocol(transport)
133
client = UserContextService.Client(protocol)
134
transport.open()
135
 
765 rajveer 136
if cmd == 'closeSession':
137
  if len(args) != 0:
138
    print 'closeSession requires 0 args'
139
    sys.exit(1)
140
  pp.pprint(client.closeSession())
141
 
142
elif cmd == 'createAnonymousUser':
559 chandransh 143
  if len(args) != 1:
144
    print 'createAnonymousUser requires 1 args'
94 ashish 145
    sys.exit(1)
559 chandransh 146
  pp.pprint(client.createAnonymousUser(args[0],))
94 ashish 147
 
559 chandransh 148
elif cmd == 'getUserById':
149
  if len(args) != 1:
150
    print 'getUserById requires 1 args'
94 ashish 151
    sys.exit(1)
559 chandransh 152
  pp.pprint(client.getUserById(eval(args[0]),))
94 ashish 153
 
1491 vikas 154
elif cmd == 'getUserByEmail':
155
  if len(args) != 1:
156
    print 'getUserByEmail requires 1 args'
157
    sys.exit(1)
158
  pp.pprint(client.getUserByEmail(args[0],))
159
 
559 chandransh 160
elif cmd == 'createUser':
161
  if len(args) != 1:
162
    print 'createUser requires 1 args'
94 ashish 163
    sys.exit(1)
559 chandransh 164
  pp.pprint(client.createUser(eval(args[0]),))
94 ashish 165
 
559 chandransh 166
elif cmd == 'updateUser':
167
  if len(args) != 1:
168
    print 'updateUser requires 1 args'
94 ashish 169
    sys.exit(1)
559 chandransh 170
  pp.pprint(client.updateUser(eval(args[0]),))
94 ashish 171
 
559 chandransh 172
elif cmd == 'deleteUser':
173
  if len(args) != 1:
174
    print 'deleteUser requires 1 args'
94 ashish 175
    sys.exit(1)
559 chandransh 176
  pp.pprint(client.deleteUser(eval(args[0]),))
94 ashish 177
 
559 chandransh 178
elif cmd == 'getUserState':
179
  if len(args) != 1:
180
    print 'getUserState requires 1 args'
94 ashish 181
    sys.exit(1)
559 chandransh 182
  pp.pprint(client.getUserState(eval(args[0]),))
94 ashish 183
 
559 chandransh 184
elif cmd == 'authenticateUser':
94 ashish 185
  if len(args) != 2:
559 chandransh 186
    print 'authenticateUser requires 2 args'
94 ashish 187
    sys.exit(1)
559 chandransh 188
  pp.pprint(client.authenticateUser(args[0],args[1],))
94 ashish 189
 
190
elif cmd == 'userExists':
191
  if len(args) != 1:
192
    print 'userExists requires 1 args'
193
    sys.exit(1)
194
  pp.pprint(client.userExists(args[0],))
195
 
196
elif cmd == 'addAddressForUser':
567 rajveer 197
  if len(args) != 3:
198
    print 'addAddressForUser requires 3 args'
94 ashish 199
    sys.exit(1)
567 rajveer 200
  pp.pprint(client.addAddressForUser(eval(args[0]),eval(args[1]),eval(args[2]),))
94 ashish 201
 
202
elif cmd == 'removeAddressForUser':
203
  if len(args) != 2:
204
    print 'removeAddressForUser requires 2 args'
205
    sys.exit(1)
206
  pp.pprint(client.removeAddressForUser(eval(args[0]),eval(args[1]),))
207
 
208
elif cmd == 'setUserAsLoggedIn':
209
  if len(args) != 2:
210
    print 'setUserAsLoggedIn requires 2 args'
211
    sys.exit(1)
212
  pp.pprint(client.setUserAsLoggedIn(eval(args[0]),eval(args[1]),))
213
 
214
elif cmd == 'setUserAsLoggedOut':
215
  if len(args) != 2:
216
    print 'setUserAsLoggedOut requires 2 args'
217
    sys.exit(1)
218
  pp.pprint(client.setUserAsLoggedOut(eval(args[0]),eval(args[1]),))
219
 
504 rajveer 220
elif cmd == 'setDefaultAddress':
221
  if len(args) != 2:
222
    print 'setDefaultAddress requires 2 args'
223
    sys.exit(1)
224
  pp.pprint(client.setDefaultAddress(eval(args[0]),eval(args[1]),))
225
 
94 ashish 226
elif cmd == 'updatePassword':
594 rajveer 227
  if len(args) != 3:
228
    print 'updatePassword requires 3 args'
94 ashish 229
    sys.exit(1)
594 rajveer 230
  pp.pprint(client.updatePassword(eval(args[0]),args[1],args[2],))
94 ashish 231
 
581 rajveer 232
elif cmd == 'forgotPassword':
884 rajveer 233
  if len(args) != 2:
234
    print 'forgotPassword requires 2 args'
581 rajveer 235
    sys.exit(1)
884 rajveer 236
  pp.pprint(client.forgotPassword(args[0],args[1],))
581 rajveer 237
 
594 rajveer 238
elif cmd == 'getAllAddressesForUser':
239
  if len(args) != 1:
240
    print 'getAllAddressesForUser requires 1 args'
241
    sys.exit(1)
242
  pp.pprint(client.getAllAddressesForUser(eval(args[0]),))
243
 
244
elif cmd == 'getDefaultAddressId':
245
  if len(args) != 1:
246
    print 'getDefaultAddressId requires 1 args'
247
    sys.exit(1)
248
  pp.pprint(client.getDefaultAddressId(eval(args[0]),))
249
 
785 rajveer 250
elif cmd == 'getDefaultPincode':
251
  if len(args) != 1:
252
    print 'getDefaultPincode requires 1 args'
253
    sys.exit(1)
254
  pp.pprint(client.getDefaultPincode(eval(args[0]),))
255
 
1274 varun.gupt 256
elif cmd == 'saveUserCommunication':
257
  if len(args) != 8:
258
    print 'saveUserCommunication requires 8 args'
259
    sys.exit(1)
260
  pp.pprint(client.saveUserCommunication(eval(args[0]),args[1],eval(args[2]),eval(args[3]),args[4],args[5],args[6],args[7],))
261
 
1590 varun.gupt 262
elif cmd == 'getUserCommunicationById':
263
  if len(args) != 1:
264
    print 'getUserCommunicationById requires 1 args'
265
    sys.exit(1)
266
  pp.pprint(client.getUserCommunicationById(eval(args[0]),))
267
 
268
elif cmd == 'getUserCommunicationByUser':
269
  if len(args) != 1:
270
    print 'getUserCommunicationByUser requires 1 args'
271
    sys.exit(1)
272
  pp.pprint(client.getUserCommunicationByUser(eval(args[0]),))
273
 
274
elif cmd == 'getAllUserCommunications':
275
  if len(args) != 0:
276
    print 'getAllUserCommunications requires 0 args'
277
    sys.exit(1)
278
  pp.pprint(client.getAllUserCommunications())
279
 
1845 vikas 280
elif cmd == 'createMasterAffiliate':
281
  if len(args) != 1:
282
    print 'createMasterAffiliate requires 1 args'
283
    sys.exit(1)
284
  pp.pprint(client.createMasterAffiliate(args[0],))
285
 
286
elif cmd == 'getMasterAffiliateById':
287
  if len(args) != 1:
288
    print 'getMasterAffiliateById requires 1 args'
289
    sys.exit(1)
290
  pp.pprint(client.getMasterAffiliateById(eval(args[0]),))
291
 
292
elif cmd == 'getMasterAffiliateByName':
293
  if len(args) != 1:
294
    print 'getMasterAffiliateByName requires 1 args'
295
    sys.exit(1)
296
  pp.pprint(client.getMasterAffiliateByName(args[0],))
297
 
298
elif cmd == 'createAffiliate':
299
  if len(args) != 3:
300
    print 'createAffiliate requires 3 args'
301
    sys.exit(1)
302
  pp.pprint(client.createAffiliate(args[0],args[1],eval(args[2]),))
303
 
304
elif cmd == 'getAffiliateById':
305
  if len(args) != 1:
306
    print 'getAffiliateById requires 1 args'
307
    sys.exit(1)
308
  pp.pprint(client.getAffiliateById(eval(args[0]),))
309
 
310
elif cmd == 'getAffiliateByName':
311
  if len(args) != 1:
312
    print 'getAffiliateByName requires 1 args'
313
    sys.exit(1)
314
  pp.pprint(client.getAffiliateByName(args[0],))
315
 
316
elif cmd == 'getAffiliatesByMasterAffiliate':
317
  if len(args) != 1:
318
    print 'getAffiliatesByMasterAffiliate requires 1 args'
319
    sys.exit(1)
320
  pp.pprint(client.getAffiliatesByMasterAffiliate(eval(args[0]),))
321
 
322
elif cmd == 'createTracker':
323
  if len(args) != 1:
324
    print 'createTracker requires 1 args'
325
    sys.exit(1)
326
  pp.pprint(client.createTracker(eval(args[0]),))
327
 
328
elif cmd == 'getTrackerById':
329
  if len(args) != 1:
330
    print 'getTrackerById requires 1 args'
331
    sys.exit(1)
332
  pp.pprint(client.getTrackerById(eval(args[0]),))
333
 
334
elif cmd == 'getTrackersByAffiliate':
335
  if len(args) != 1:
336
    print 'getTrackersByAffiliate requires 1 args'
337
    sys.exit(1)
338
  pp.pprint(client.getTrackersByAffiliate(eval(args[0]),))
339
 
340
elif cmd == 'addTrackLog':
341
  if len(args) != 5:
342
    print 'addTrackLog requires 5 args'
343
    sys.exit(1)
344
  pp.pprint(client.addTrackLog(eval(args[0]),eval(args[1]),args[2],args[3],args[4],))
345
 
346
elif cmd == 'getTrackLogById':
347
  if len(args) != 1:
348
    print 'getTrackLogById requires 1 args'
349
    sys.exit(1)
350
  pp.pprint(client.getTrackLogById(eval(args[0]),))
351
 
352
elif cmd == 'getTrackLogsByTracker':
353
  if len(args) != 1:
354
    print 'getTrackLogsByTracker requires 1 args'
355
    sys.exit(1)
356
  pp.pprint(client.getTrackLogsByTracker(eval(args[0]),))
357
 
358
elif cmd == 'getTrackLogsByUser':
359
  if len(args) != 1:
360
    print 'getTrackLogsByUser requires 1 args'
361
    sys.exit(1)
362
  pp.pprint(client.getTrackLogsByUser(eval(args[0]),))
363
 
364
elif cmd == 'getTrackLogs':
365
  if len(args) != 4:
366
    print 'getTrackLogs requires 4 args'
367
    sys.exit(1)
368
  pp.pprint(client.getTrackLogs(eval(args[0]),eval(args[1]),args[2],args[3],))
369
 
559 chandransh 370
elif cmd == 'createCart':
371
  if len(args) != 1:
372
    print 'createCart requires 1 args'
373
    sys.exit(1)
374
  pp.pprint(client.createCart(eval(args[0]),))
375
 
376
elif cmd == 'getCurrentCart':
377
  if len(args) != 1:
378
    print 'getCurrentCart requires 1 args'
379
    sys.exit(1)
380
  pp.pprint(client.getCurrentCart(eval(args[0]),))
381
 
382
elif cmd == 'getCart':
383
  if len(args) != 1:
384
    print 'getCart requires 1 args'
385
    sys.exit(1)
386
  pp.pprint(client.getCart(eval(args[0]),))
387
 
388
elif cmd == 'getCartsForUser':
122 ashish 389
  if len(args) != 2:
559 chandransh 390
    print 'getCartsForUser requires 2 args'
94 ashish 391
    sys.exit(1)
559 chandransh 392
  pp.pprint(client.getCartsForUser(eval(args[0]),eval(args[1]),))
94 ashish 393
 
559 chandransh 394
elif cmd == 'getCartsByStatus':
94 ashish 395
  if len(args) != 1:
559 chandransh 396
    print 'getCartsByStatus requires 1 args'
94 ashish 397
    sys.exit(1)
559 chandransh 398
  pp.pprint(client.getCartsByStatus(eval(args[0]),))
94 ashish 399
 
559 chandransh 400
elif cmd == 'getCartsByTime':
401
  if len(args) != 3:
402
    print 'getCartsByTime requires 3 args'
403
    sys.exit(1)
404
  pp.pprint(client.getCartsByTime(eval(args[0]),eval(args[1]),eval(args[2]),))
405
 
406
elif cmd == 'changeCartStatus':
407
  if len(args) != 2:
408
    print 'changeCartStatus requires 2 args'
409
    sys.exit(1)
410
  pp.pprint(client.changeCartStatus(eval(args[0]),eval(args[1]),))
411
 
412
elif cmd == 'addItemToCart':
413
  if len(args) != 3:
414
    print 'addItemToCart requires 3 args'
415
    sys.exit(1)
416
  pp.pprint(client.addItemToCart(eval(args[0]),eval(args[1]),eval(args[2]),))
417
 
418
elif cmd == 'deleteItemFromCart':
419
  if len(args) != 2:
420
    print 'deleteItemFromCart requires 2 args'
421
    sys.exit(1)
422
  pp.pprint(client.deleteItemFromCart(eval(args[0]),eval(args[1]),))
423
 
424
elif cmd == 'changeQuantity':
425
  if len(args) != 3:
426
    print 'changeQuantity requires 3 args'
427
    sys.exit(1)
428
  pp.pprint(client.changeQuantity(eval(args[0]),eval(args[1]),eval(args[2]),))
429
 
430
elif cmd == 'changeItemStatus':
431
  if len(args) != 3:
432
    print 'changeItemStatus requires 3 args'
433
    sys.exit(1)
434
  pp.pprint(client.changeItemStatus(eval(args[0]),eval(args[1]),eval(args[2]),))
435
 
436
elif cmd == 'addAddressToCart':
437
  if len(args) != 2:
438
    print 'addAddressToCart requires 2 args'
439
    sys.exit(1)
440
  pp.pprint(client.addAddressToCart(eval(args[0]),eval(args[1]),))
441
 
690 chandransh 442
elif cmd == 'createOrders':
94 ashish 443
  if len(args) != 1:
690 chandransh 444
    print 'createOrders requires 1 args'
94 ashish 445
    sys.exit(1)
690 chandransh 446
  pp.pprint(client.createOrders(eval(args[0]),))
94 ashish 447
 
559 chandransh 448
elif cmd == 'validateCart':
94 ashish 449
  if len(args) != 1:
559 chandransh 450
    print 'validateCart requires 1 args'
94 ashish 451
    sys.exit(1)
559 chandransh 452
  pp.pprint(client.validateCart(eval(args[0]),))
94 ashish 453
 
559 chandransh 454
elif cmd == 'mergeCart':
455
  if len(args) != 2:
456
    print 'mergeCart requires 2 args'
457
    sys.exit(1)
458
  pp.pprint(client.mergeCart(eval(args[0]),eval(args[1]),))
459
 
690 chandransh 460
elif cmd == 'checkOut':
461
  if len(args) != 1:
462
    print 'checkOut requires 1 args'
463
    sys.exit(1)
464
  pp.pprint(client.checkOut(eval(args[0]),))
465
 
466
elif cmd == 'resetCart':
467
  if len(args) != 2:
468
    print 'resetCart requires 2 args'
469
    sys.exit(1)
470
  pp.pprint(client.resetCart(eval(args[0]),eval(args[1]),))
471
 
559 chandransh 472
elif cmd == 'getMyResearch':
130 ashish 473
  if len(args) != 1:
559 chandransh 474
    print 'getMyResearch requires 1 args'
130 ashish 475
    sys.exit(1)
559 chandransh 476
  pp.pprint(client.getMyResearch(eval(args[0]),))
130 ashish 477
 
559 chandransh 478
elif cmd == 'updateMyResearch':
130 ashish 479
  if len(args) != 2:
559 chandransh 480
    print 'updateMyResearch requires 2 args'
130 ashish 481
    sys.exit(1)
559 chandransh 482
  pp.pprint(client.updateMyResearch(eval(args[0]),eval(args[1]),))
130 ashish 483
 
559 chandransh 484
elif cmd == 'deleteItemFromMyResearch':
485
  if len(args) != 2:
486
    print 'deleteItemFromMyResearch requires 2 args'
487
    sys.exit(1)
488
  pp.pprint(client.deleteItemFromMyResearch(eval(args[0]),eval(args[1]),))
489
 
772 rajveer 490
elif cmd == 'updateBrowseHistory':
559 chandransh 491
  if len(args) != 2:
772 rajveer 492
    print 'updateBrowseHistory requires 2 args'
559 chandransh 493
    sys.exit(1)
772 rajveer 494
  pp.pprint(client.updateBrowseHistory(eval(args[0]),eval(args[1]),))
559 chandransh 495
 
772 rajveer 496
elif cmd == 'getBrowseHistory':
497
  if len(args) != 1:
498
    print 'getBrowseHistory requires 1 args'
559 chandransh 499
    sys.exit(1)
772 rajveer 500
  pp.pprint(client.getBrowseHistory(eval(args[0]),))
559 chandransh 501
 
772 rajveer 502
elif cmd == 'mergeBrowseHistory':
559 chandransh 503
  if len(args) != 2:
772 rajveer 504
    print 'mergeBrowseHistory requires 2 args'
559 chandransh 505
    sys.exit(1)
772 rajveer 506
  pp.pprint(client.mergeBrowseHistory(eval(args[0]),eval(args[1]),))
559 chandransh 507
 
1596 ankur.sing 508
elif cmd == 'getUserCount':
509
  if len(args) != 1:
510
    print 'getUserCount requires 1 args'
511
    sys.exit(1)
512
  pp.pprint(client.getUserCount(eval(args[0]),))
513
 
1673 ankur.sing 514
elif cmd == 'getAllUsers':
515
  if len(args) != 1:
516
    print 'getAllUsers requires 1 args'
517
    sys.exit(1)
518
  pp.pprint(client.getAllUsers(eval(args[0]),))
519
 
94 ashish 520
transport.close()