Subversion Repositories SmartDukaan

Rev

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

Rev 7567 Rev 7738
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)'
-
 
44
  print '  void runCompleteUpdateForPincode()'
43
  print ''
45
  print ''
44
  sys.exit(0)
46
  sys.exit(0)
45
 
47
 
46
pp = pprint.PrettyPrinter(indent = 2)
48
pp = pprint.PrettyPrinter(indent = 2)
47
host = 'localhost'
49
host = 'localhost'
Line 202... Line 204...
202
  if len(args) != 3:
204
  if len(args) != 3:
203
    print 'addNewAwbs requires 3 args'
205
    print 'addNewAwbs requires 3 args'
204
    sys.exit(1)
206
    sys.exit(1)
205
  pp.pprint(client.addNewAwbs(eval(args[0]),eval(args[1]),eval(args[2]),))
207
  pp.pprint(client.addNewAwbs(eval(args[0]),eval(args[1]),eval(args[2]),))
206
 
208
 
-
 
209
elif cmd == 'getServiceableLocationAsPerProviderIdAndPincode':
-
 
210
  if len(args) != 2:
-
 
211
    print 'getServiceableLocationAsPerProviderIdAndPincode requires 2 args'
-
 
212
    sys.exit(1)
-
 
213
  pp.pprint(client.getServiceableLocationAsPerProviderIdAndPincode(eval(args[0]),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
 
207
else:
221
else:
208
  print 'Unrecognized method %s' % cmd
222
  print 'Unrecognized method %s' % cmd
209
  sys.exit(1)
223
  sys.exit(1)
210
 
224
 
211
transport.close()
225
transport.close()