Subversion Repositories SmartDukaan

Rev

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

Rev 7738 Rev 7787
Line 38... Line 38...
38
  print '  PickupStore getPickupStore(i64 storeId)'
38
  print '  PickupStore getPickupStore(i64 storeId)'
39
  print '  PickupStore getPickupStoreByHotspotId(string hotspotId)'
39
  print '  PickupStore getPickupStoreByHotspotId(string hotspotId)'
40
  print '  void addPincode(i64 providerId, string pincode, string destCode, bool exp, bool cod, i32 stationType, bool otgAvailable)'
40
  print '  void addPincode(i64 providerId, string pincode, string destCode, bool exp, bool cod, i32 stationType, bool otgAvailable)'
41
  print '  void updatePincode(i64 providerId, string pincode, bool exp, bool cod, bool otgAvailable)'
41
  print '  void updatePincode(i64 providerId, string pincode, bool exp, bool cod, bool otgAvailable)'
42
  print '  bool addNewAwbs(i64 providerId, bool cod,  awbs)'
42
  print '  bool addNewAwbs(i64 providerId, bool cod,  awbs)'
43
  print '  bool getServiceableLocationAsPerProviderIdAndPincode(i64 providerId, string pincode)'
43
  print '  void runLogisticsLocationInfoUpdate( logisticsLocationInfoList, bool runCompleteUpdate)'
44
  print '  void runCompleteUpdateForPincode()'
-
 
45
  print ''
44
  print ''
46
  sys.exit(0)
45
  sys.exit(0)
47
 
46
 
48
pp = pprint.PrettyPrinter(indent = 2)
47
pp = pprint.PrettyPrinter(indent = 2)
49
host = 'localhost'
48
host = 'localhost'
Line 204... Line 203...
204
  if len(args) != 3:
203
  if len(args) != 3:
205
    print 'addNewAwbs requires 3 args'
204
    print 'addNewAwbs requires 3 args'
206
    sys.exit(1)
205
    sys.exit(1)
207
  pp.pprint(client.addNewAwbs(eval(args[0]),eval(args[1]),eval(args[2]),))
206
  pp.pprint(client.addNewAwbs(eval(args[0]),eval(args[1]),eval(args[2]),))
208
 
207
 
209
elif cmd == 'getServiceableLocationAsPerProviderIdAndPincode':
208
elif cmd == 'runLogisticsLocationInfoUpdate':
210
  if len(args) != 2:
209
  if len(args) != 2:
211
    print 'getServiceableLocationAsPerProviderIdAndPincode requires 2 args'
210
    print 'runLogisticsLocationInfoUpdate requires 2 args'
212
    sys.exit(1)
211
    sys.exit(1)
213
  pp.pprint(client.getServiceableLocationAsPerProviderIdAndPincode(eval(args[0]),args[1],))
212
  pp.pprint(client.runLogisticsLocationInfoUpdate(eval(args[0]),eval(args[1]),))
214
 
-
 
215
elif cmd == 'runCompleteUpdateForPincode':
-
 
216
  if len(args) != 0:
-
 
217
    print 'runCompleteUpdateForPincode requires 0 args'
-
 
218
    sys.exit(1)
-
 
219
  pp.pprint(client.runCompleteUpdateForPincode())
-
 
220
 
213
 
221
else:
214
else:
222
  print 'Unrecognized method %s' % cmd
215
  print 'Unrecognized method %s' % cmd
223
  sys.exit(1)
216
  sys.exit(1)
224
 
217