Subversion Repositories SmartDukaan

Rev

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

Rev 4865 Rev 4934
Line 28... Line 28...
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 '  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 ''
34
  print ''
34
  sys.exit(0)
35
  sys.exit(0)
35
 
36
 
36
pp = pprint.PrettyPrinter(indent = 2)
37
pp = pprint.PrettyPrinter(indent = 2)
37
host = 'localhost'
38
host = 'localhost'
Line 132... Line 133...
132
  if len(args) != 2:
133
  if len(args) != 2:
133
    print 'getHolidays requires 2 args'
134
    print 'getHolidays requires 2 args'
134
    sys.exit(1)
135
    sys.exit(1)
135
  pp.pprint(client.getHolidays(eval(args[0]),eval(args[1]),))
136
  pp.pprint(client.getHolidays(eval(args[0]),eval(args[1]),))
136
 
137
 
-
 
138
elif cmd == 'getEntityLogisticsEstimation':
-
 
139
  if len(args) != 3:
-
 
140
    print 'getEntityLogisticsEstimation requires 3 args'
-
 
141
    sys.exit(1)
-
 
142
  pp.pprint(client.getEntityLogisticsEstimation(eval(args[0]),args[1],eval(args[2]),))
-
 
143
 
137
else:
144
else:
138
  print 'Unrecognized method %s' % cmd
145
  print 'Unrecognized method %s' % cmd
139
  sys.exit(1)
146
  sys.exit(1)
140
 
147
 
141
transport.close()
148
transport.close()