Subversion Repositories SmartDukaan

Rev

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

Rev 5247 Rev 5527
Line 29... Line 29...
29
  print '   getShipmentInfo(string awb, i64 providerId)'
29
  print '   getShipmentInfo(string awb, i64 providerId)'
30
  print '  string getDestinationCode(i64 providerId, string pinCode)'
30
  print '  string getDestinationCode(i64 providerId, string pinCode)'
31
  print '  i64 getFreeAwbCount(i64 providerId, string type)'
31
  print '  i64 getFreeAwbCount(i64 providerId, string type)'
32
  print '   getHolidays(i64 fromDate, i64 toDate)'
32
  print '   getHolidays(i64 fromDate, i64 toDate)'
33
  print '   getEntityLogisticsEstimation(i64 catalogItemId, string destination_pin, DeliveryType type)'
33
  print '   getEntityLogisticsEstimation(i64 catalogItemId, string destination_pin, DeliveryType type)'
-
 
34
  print '  i64 getProviderForPickupType(i64 pickUp)'
34
  print ''
35
  print ''
35
  sys.exit(0)
36
  sys.exit(0)
36
 
37
 
37
pp = pprint.PrettyPrinter(indent = 2)
38
pp = pprint.PrettyPrinter(indent = 2)
38
host = 'localhost'
39
host = 'localhost'
Line 139... Line 140...
139
  if len(args) != 3:
140
  if len(args) != 3:
140
    print 'getEntityLogisticsEstimation requires 3 args'
141
    print 'getEntityLogisticsEstimation requires 3 args'
141
    sys.exit(1)
142
    sys.exit(1)
142
  pp.pprint(client.getEntityLogisticsEstimation(eval(args[0]),args[1],eval(args[2]),))
143
  pp.pprint(client.getEntityLogisticsEstimation(eval(args[0]),args[1],eval(args[2]),))
143
 
144
 
-
 
145
elif cmd == 'getProviderForPickupType':
-
 
146
  if len(args) != 1:
-
 
147
    print 'getProviderForPickupType requires 1 args'
-
 
148
    sys.exit(1)
-
 
149
  pp.pprint(client.getProviderForPickupType(eval(args[0]),))
-
 
150
 
144
else:
151
else:
145
  print 'Unrecognized method %s' % cmd
152
  print 'Unrecognized method %s' % cmd
146
  sys.exit(1)
153
  sys.exit(1)
147
 
154
 
148
transport.close()
155
transport.close()