Subversion Repositories SmartDukaan

Rev

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

Rev 10450 Rev 10485
Line 94... Line 94...
94
  print '   getSnapdealInventorySnapshot()'
94
  print '   getSnapdealInventorySnapshot()'
95
  print '   getHoldInventoryDetails(i64 itemId, i64 warehouseId, i64 source)'
95
  print '   getHoldInventoryDetails(i64 itemId, i64 warehouseId, i64 source)'
96
  print '  void addOrUpdateFlipkartInventorySnapshot( flipkartInventorySnapshot, i64 time)'
96
  print '  void addOrUpdateFlipkartInventorySnapshot( flipkartInventorySnapshot, i64 time)'
97
  print '   getFlipkartInventorySnapshot()'
97
  print '   getFlipkartInventorySnapshot()'
98
  print '  FlipkartInventorySnapshot getFlipkartlInventoryForItem(i64 item_id)'
98
  print '  FlipkartInventorySnapshot getFlipkartlInventoryForItem(i64 item_id)'
-
 
99
  print '   getStateMaster()'
99
  print ''
100
  print ''
100
  sys.exit(0)
101
  sys.exit(0)
101
 
102
 
102
pp = pprint.PrettyPrinter(indent = 2)
103
pp = pprint.PrettyPrinter(indent = 2)
103
host = 'localhost'
104
host = 'localhost'
Line 594... Line 595...
594
  if len(args) != 1:
595
  if len(args) != 1:
595
    print 'getFlipkartlInventoryForItem requires 1 args'
596
    print 'getFlipkartlInventoryForItem requires 1 args'
596
    sys.exit(1)
597
    sys.exit(1)
597
  pp.pprint(client.getFlipkartlInventoryForItem(eval(args[0]),))
598
  pp.pprint(client.getFlipkartlInventoryForItem(eval(args[0]),))
598
 
599
 
-
 
600
elif cmd == 'getStateMaster':
-
 
601
  if len(args) != 0:
-
 
602
    print 'getStateMaster requires 0 args'
-
 
603
    sys.exit(1)
-
 
604
  pp.pprint(client.getStateMaster())
-
 
605
 
599
else:
606
else:
600
  print 'Unrecognized method %s' % cmd
607
  print 'Unrecognized method %s' % cmd
601
  sys.exit(1)
608
  sys.exit(1)
602
 
609
 
603
transport.close()
610
transport.close()