Subversion Repositories SmartDukaan

Rev

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

Rev 3044 Rev 3064
Line 29... Line 29...
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 '   getHolidays(i64 fromDate, i64 toDate)'
-
 
34
  print '  bool isCodAllowed(string destination_pincode)'
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 137... Line 138...
137
  if len(args) != 2:
138
  if len(args) != 2:
138
    print 'getHolidays requires 2 args'
139
    print 'getHolidays requires 2 args'
139
    sys.exit(1)
140
    sys.exit(1)
140
  pp.pprint(client.getHolidays(eval(args[0]),eval(args[1]),))
141
  pp.pprint(client.getHolidays(eval(args[0]),eval(args[1]),))
141
 
142
 
-
 
143
elif cmd == 'isCodAllowed':
-
 
144
  if len(args) != 1:
-
 
145
    print 'isCodAllowed requires 1 args'
-
 
146
    sys.exit(1)
-
 
147
  pp.pprint(client.isCodAllowed(args[0],))
-
 
148
 
142
transport.close()
149
transport.close()