Subversion Repositories SmartDukaan

Rev

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

Rev 4386 Rev 4391
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 '  bool isCodAllowed(string destination_pincode)'
33
  print '  bool isCodAllowed(string destination_pincode)'
34
  print '  Awb getAwbForNumber(string awbNumber)'
-
 
35
  print ''
34
  print ''
36
  sys.exit(0)
35
  sys.exit(0)
37
 
36
 
38
pp = pprint.PrettyPrinter(indent = 2)
37
pp = pprint.PrettyPrinter(indent = 2)
39
host = 'localhost'
38
host = 'localhost'
Line 140... Line 139...
140
  if len(args) != 1:
139
  if len(args) != 1:
141
    print 'isCodAllowed requires 1 args'
140
    print 'isCodAllowed requires 1 args'
142
    sys.exit(1)
141
    sys.exit(1)
143
  pp.pprint(client.isCodAllowed(args[0],))
142
  pp.pprint(client.isCodAllowed(args[0],))
144
 
143
 
145
elif cmd == 'getAwbForNumber':
-
 
146
  if len(args) != 1:
-
 
147
    print 'getAwbForNumber requires 1 args'
-
 
148
    sys.exit(1)
-
 
149
  pp.pprint(client.getAwbForNumber(args[0],))
-
 
150
 
-
 
151
else:
144
else:
152
  print 'Unrecognized method %s' % cmd
145
  print 'Unrecognized method %s' % cmd
153
  sys.exit(1)
146
  sys.exit(1)
154
 
147
 
155
transport.close()
148
transport.close()