Subversion Repositories SmartDukaan

Rev

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

Rev 716 Rev 732
Line 25... Line 25...
25
  print '   getAllProviders()'
25
  print '   getAllProviders()'
26
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin)'
26
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin)'
27
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id)'
27
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id)'
28
  print '  string getEmptyAWB(i64 providerId)'
28
  print '  string getEmptyAWB(i64 providerId)'
29
  print '   getShipmentInfo(string awb, i64 providerId)'
29
  print '   getShipmentInfo(string awb, i64 providerId)'
-
 
30
  print '  string getDestinationCode(i64 providerId, string pinCode)'
30
  print ''
31
  print ''
31
  sys.exit(0)
32
  sys.exit(0)
32
 
33
 
33
pp = pprint.PrettyPrinter(indent = 2)
34
pp = pprint.PrettyPrinter(indent = 2)
34
host = 'localhost'
35
host = 'localhost'
Line 109... Line 110...
109
  if len(args) != 2:
110
  if len(args) != 2:
110
    print 'getShipmentInfo requires 2 args'
111
    print 'getShipmentInfo requires 2 args'
111
    sys.exit(1)
112
    sys.exit(1)
112
  pp.pprint(client.getShipmentInfo(args[0],eval(args[1]),))
113
  pp.pprint(client.getShipmentInfo(args[0],eval(args[1]),))
113
 
114
 
-
 
115
elif cmd == 'getDestinationCode':
-
 
116
  if len(args) != 2:
-
 
117
    print 'getDestinationCode requires 2 args'
-
 
118
    sys.exit(1)
-
 
119
  pp.pprint(client.getDestinationCode(eval(args[0]),args[1],))
-
 
120
 
114
transport.close()
121
transport.close()