Subversion Repositories SmartDukaan

Rev

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

Rev 3469 Rev 3553
Line 72... Line 72...
72
  print '  void processReturn(i64 returnOrderId)'
72
  print '  void processReturn(i64 returnOrderId)'
73
  print '  i64 createPurchaseOrder(i64 warehouseId)'
73
  print '  i64 createPurchaseOrder(i64 warehouseId)'
74
  print '  Order updateWeight(i64 orderId, double weight)'
74
  print '  Order updateWeight(i64 orderId, double weight)'
75
  print '  Order changeItem(i64 orderId, i64 itemId)'
75
  print '  Order changeItem(i64 orderId, i64 itemId)'
76
  print '  Order shiftToWarehouse(i64 orderId, i64 warehouseId)'
76
  print '  Order shiftToWarehouse(i64 orderId, i64 warehouseId)'
-
 
77
  print '  bool addDelayReason(i64 orderId, DelayReason delayReason)'
77
  print ''
78
  print ''
78
  sys.exit(0)
79
  sys.exit(0)
79
 
80
 
80
pp = pprint.PrettyPrinter(indent = 2)
81
pp = pprint.PrettyPrinter(indent = 2)
81
host = 'localhost'
82
host = 'localhost'
Line 440... Line 441...
440
  if len(args) != 2:
441
  if len(args) != 2:
441
    print 'shiftToWarehouse requires 2 args'
442
    print 'shiftToWarehouse requires 2 args'
442
    sys.exit(1)
443
    sys.exit(1)
443
  pp.pprint(client.shiftToWarehouse(eval(args[0]),eval(args[1]),))
444
  pp.pprint(client.shiftToWarehouse(eval(args[0]),eval(args[1]),))
444
 
445
 
-
 
446
elif cmd == 'addDelayReason':
-
 
447
  if len(args) != 2:
-
 
448
    print 'addDelayReason requires 2 args'
-
 
449
    sys.exit(1)
-
 
450
  pp.pprint(client.addDelayReason(eval(args[0]),eval(args[1]),))
-
 
451
 
445
else:
452
else:
446
  print 'Unrecognized method %s' % cmd
453
  print 'Unrecognized method %s' % cmd
447
  sys.exit(1)
454
  sys.exit(1)
448
 
455
 
449
transport.close()
456
transport.close()