Subversion Repositories SmartDukaan

Rev

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

Rev 5527 Rev 5553
Line 30... Line 30...
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 '   getEntityLogisticsEstimation(i64 catalogItemId, string destination_pin, DeliveryType type)'
33
  print '   getEntityLogisticsEstimation(i64 catalogItemId, string destination_pin, DeliveryType type)'
34
  print '  i64 getProviderForPickupType(i64 pickUp)'
34
  print '  i64 getProviderForPickupType(i64 pickUp)'
-
 
35
  print '   getAllPickupStores()'
-
 
36
  print '  PickupStore getPickupStore(i64 storeId)'
35
  print ''
37
  print ''
36
  sys.exit(0)
38
  sys.exit(0)
37
 
39
 
38
pp = pprint.PrettyPrinter(indent = 2)
40
pp = pprint.PrettyPrinter(indent = 2)
39
host = 'localhost'
41
host = 'localhost'
Line 146... Line 148...
146
  if len(args) != 1:
148
  if len(args) != 1:
147
    print 'getProviderForPickupType requires 1 args'
149
    print 'getProviderForPickupType requires 1 args'
148
    sys.exit(1)
150
    sys.exit(1)
149
  pp.pprint(client.getProviderForPickupType(eval(args[0]),))
151
  pp.pprint(client.getProviderForPickupType(eval(args[0]),))
150
 
152
 
-
 
153
elif cmd == 'getAllPickupStores':
-
 
154
  if len(args) != 0:
-
 
155
    print 'getAllPickupStores requires 0 args'
-
 
156
    sys.exit(1)
-
 
157
  pp.pprint(client.getAllPickupStores())
-
 
158
 
-
 
159
elif cmd == 'getPickupStore':
-
 
160
  if len(args) != 1:
-
 
161
    print 'getPickupStore requires 1 args'
-
 
162
    sys.exit(1)
-
 
163
  pp.pprint(client.getPickupStore(eval(args[0]),))
-
 
164
 
151
else:
165
else:
152
  print 'Unrecognized method %s' % cmd
166
  print 'Unrecognized method %s' % cmd
153
  sys.exit(1)
167
  sys.exit(1)
154
 
168
 
155
transport.close()
169
transport.close()