Subversion Repositories SmartDukaan

Rev

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

Rev 5978 Rev 6096
Line 54... Line 54...
54
  print '   getShippingLocations()'
54
  print '   getShippingLocations()'
55
  print '   getAllVendorItemMappings()'
55
  print '   getAllVendorItemMappings()'
56
  print '   getInventorySnapshot(i64 warehouseId)'
56
  print '   getInventorySnapshot(i64 warehouseId)'
57
  print '  void clearItemAvailabilityCache()'
57
  print '  void clearItemAvailabilityCache()'
58
  print '  void updateVendorString(i64 warehouseId, string vendorString)'
58
  print '  void updateVendorString(i64 warehouseId, string vendorString)'
-
 
59
  print '  void clearItemAvailabilityCacheForItem(i64 item_id)'
59
  print ''
60
  print ''
60
  sys.exit(0)
61
  sys.exit(0)
61
 
62
 
62
pp = pprint.PrettyPrinter(indent = 2)
63
pp = pprint.PrettyPrinter(indent = 2)
63
host = 'localhost'
64
host = 'localhost'
Line 314... Line 315...
314
  if len(args) != 2:
315
  if len(args) != 2:
315
    print 'updateVendorString requires 2 args'
316
    print 'updateVendorString requires 2 args'
316
    sys.exit(1)
317
    sys.exit(1)
317
  pp.pprint(client.updateVendorString(eval(args[0]),args[1],))
318
  pp.pprint(client.updateVendorString(eval(args[0]),args[1],))
318
 
319
 
-
 
320
elif cmd == 'clearItemAvailabilityCacheForItem':
-
 
321
  if len(args) != 1:
-
 
322
    print 'clearItemAvailabilityCacheForItem requires 1 args'
-
 
323
    sys.exit(1)
-
 
324
  pp.pprint(client.clearItemAvailabilityCacheForItem(eval(args[0]),))
-
 
325
 
319
else:
326
else:
320
  print 'Unrecognized method %s' % cmd
327
  print 'Unrecognized method %s' % cmd
321
  sys.exit(1)
328
  sys.exit(1)
322
 
329
 
323
transport.close()
330
transport.close()