Subversion Repositories SmartDukaan

Rev

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

Rev 9404 Rev 9456
Line 84... Line 84...
84
  print '   getOursGoodWarehouseIdsForLocation(i64 state_id)'
84
  print '   getOursGoodWarehouseIdsForLocation(i64 state_id)'
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 ''
90
  print ''
90
  sys.exit(0)
91
  sys.exit(0)
91
 
92
 
92
pp = pprint.PrettyPrinter(indent = 2)
93
pp = pprint.PrettyPrinter(indent = 2)
93
host = 'localhost'
94
host = 'localhost'
Line 524... Line 525...
524
  if len(args) != 2:
525
  if len(args) != 2:
525
    print 'getNlcForWarehouse requires 2 args'
526
    print 'getNlcForWarehouse requires 2 args'
526
    sys.exit(1)
527
    sys.exit(1)
527
  pp.pprint(client.getNlcForWarehouse(eval(args[0]),eval(args[1]),))
528
  pp.pprint(client.getNlcForWarehouse(eval(args[0]),eval(args[1]),))
528
 
529
 
-
 
530
elif cmd == 'getLastUpdatedTimeForSnapdealInventory':
-
 
531
  if len(args) != 0:
-
 
532
    print 'getLastUpdatedTimeForSnapdealInventory requires 0 args'
-
 
533
    sys.exit(1)
-
 
534
  pp.pprint(client.getLastUpdatedTimeForSnapdealInventory())
-
 
535
 
529
else:
536
else:
530
  print 'Unrecognized method %s' % cmd
537
  print 'Unrecognized method %s' % cmd
531
  sys.exit(1)
538
  sys.exit(1)
532
 
539
 
533
transport.close()
540
transport.close()