Subversion Repositories SmartDukaan

Rev

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

Rev 1137 Rev 1730
Line 28... Line 28...
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 '  i64 getFreeAwbCount(i64 providerId)'
-
 
33
  print '   getHolidays(i64 fromDate, i64 toDate)'
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 130... Line 131...
130
  if len(args) != 1:
131
  if len(args) != 1:
131
    print 'getFreeAwbCount requires 1 args'
132
    print 'getFreeAwbCount requires 1 args'
132
    sys.exit(1)
133
    sys.exit(1)
133
  pp.pprint(client.getFreeAwbCount(eval(args[0]),))
134
  pp.pprint(client.getFreeAwbCount(eval(args[0]),))
134
 
135
 
-
 
136
elif cmd == 'getHolidays':
-
 
137
  if len(args) != 2:
-
 
138
    print 'getHolidays requires 2 args'
-
 
139
    sys.exit(1)
-
 
140
  pp.pprint(client.getHolidays(eval(args[0]),eval(args[1]),))
-
 
141
 
135
transport.close()
142
transport.close()