Subversion Repositories SmartDukaan

Rev

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

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