Subversion Repositories SmartDukaan

Rev

Rev 765 | Rev 1730 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 765 Rev 1137
Line 27... Line 27...
27
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin)'
27
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin)'
28
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id)'
28
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id)'
29
  print '  string getEmptyAWB(i64 providerId)'
29
  print '  string getEmptyAWB(i64 providerId)'
30
  print '   getShipmentInfo(string awb, i64 providerId)'
30
  print '   getShipmentInfo(string awb, i64 providerId)'
31
  print '  string getDestinationCode(i64 providerId, string pinCode)'
31
  print '  string getDestinationCode(i64 providerId, string pinCode)'
-
 
32
  print '  i64 getFreeAwbCount(i64 providerId)'
32
  print ''
33
  print ''
33
  sys.exit(0)
34
  sys.exit(0)
34
 
35
 
35
pp = pprint.PrettyPrinter(indent = 2)
36
pp = pprint.PrettyPrinter(indent = 2)
36
host = 'localhost'
37
host = 'localhost'
Line 123... Line 124...
123
  if len(args) != 2:
124
  if len(args) != 2:
124
    print 'getDestinationCode requires 2 args'
125
    print 'getDestinationCode requires 2 args'
125
    sys.exit(1)
126
    sys.exit(1)
126
  pp.pprint(client.getDestinationCode(eval(args[0]),args[1],))
127
  pp.pprint(client.getDestinationCode(eval(args[0]),args[1],))
127
 
128
 
-
 
129
elif cmd == 'getFreeAwbCount':
-
 
130
  if len(args) != 1:
-
 
131
    print 'getFreeAwbCount requires 1 args'
-
 
132
    sys.exit(1)
-
 
133
  pp.pprint(client.getFreeAwbCount(eval(args[0]),))
-
 
134
 
128
transport.close()
135
transport.close()