Subversion Repositories SmartDukaan

Rev

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

Rev 9456 Rev 9482
Line 85... Line 85...
85
  print '  i64 getHoldInventoryDetailForItemForWarehouseIdExceptSource(i64 id, i64 warehouse_id, i64 source)'
85
  print '  i64 getHoldInventoryDetailForItemForWarehouseIdExceptSource(i64 id, i64 warehouse_id, i64 source)'
86
  print '  SnapdealInventoryItem getSnapdealInventoryForItem(i64 item_id)'
86
  print '  SnapdealInventoryItem getSnapdealInventoryForItem(i64 item_id)'
87
  print '  void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem)'
87
  print '  void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem)'
88
  print '  double getNlcForWarehouse(i64 warehouse_id, i64 item_id)'
88
  print '  double getNlcForWarehouse(i64 warehouse_id, i64 item_id)'
89
  print '  i64 getLastUpdatedTimeForSnapdealInventory()'
89
  print '  i64 getLastUpdatedTimeForSnapdealInventory()'
-
 
90
  print '  void addOrUpdateAllAmazonFbaInventory( allamazonfbainventorysnapshot)'
90
  print ''
91
  print ''
91
  sys.exit(0)
92
  sys.exit(0)
92
 
93
 
93
pp = pprint.PrettyPrinter(indent = 2)
94
pp = pprint.PrettyPrinter(indent = 2)
94
host = 'localhost'
95
host = 'localhost'
Line 531... Line 532...
531
  if len(args) != 0:
532
  if len(args) != 0:
532
    print 'getLastUpdatedTimeForSnapdealInventory requires 0 args'
533
    print 'getLastUpdatedTimeForSnapdealInventory requires 0 args'
533
    sys.exit(1)
534
    sys.exit(1)
534
  pp.pprint(client.getLastUpdatedTimeForSnapdealInventory())
535
  pp.pprint(client.getLastUpdatedTimeForSnapdealInventory())
535
 
536
 
-
 
537
elif cmd == 'addOrUpdateAllAmazonFbaInventory':
-
 
538
  if len(args) != 1:
-
 
539
    print 'addOrUpdateAllAmazonFbaInventory requires 1 args'
-
 
540
    sys.exit(1)
-
 
541
  pp.pprint(client.addOrUpdateAllAmazonFbaInventory(eval(args[0]),))
-
 
542
 
536
else:
543
else:
537
  print 'Unrecognized method %s' % cmd
544
  print 'Unrecognized method %s' % cmd
538
  sys.exit(1)
545
  sys.exit(1)
539
 
546
 
540
transport.close()
547
transport.close()