Subversion Repositories SmartDukaan

Rev

Rev 22364 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22364 Rev 22452
Line 115... Line 115...
115
  print '  bool isTaxInvoiceEnabledUser(i64 userId)'
115
  print '  bool isTaxInvoiceEnabledUser(i64 userId)'
116
  print '  bool taxInvoiceAvailable(i64 addressId)'
116
  print '  bool taxInvoiceAvailable(i64 addressId)'
117
  print '   getCartByValue( cartIds)'
117
  print '   getCartByValue( cartIds)'
118
  print '   getCounterName( userIds)'
118
  print '   getCounterName( userIds)'
119
  print '  bool setWalletAmountInCart(i64 cartId, double wallet_amount)'
119
  print '  bool setWalletAmountInCart(i64 cartId, double wallet_amount)'
-
 
120
  print '  bool addItemPricingToCart(i64 cartId,  itemPriceQuantityList)'
120
  print ''
121
  print ''
121
  sys.exit(0)
122
  sys.exit(0)
122
 
123
 
123
pp = pprint.PrettyPrinter(indent = 2)
124
pp = pprint.PrettyPrinter(indent = 2)
124
host = 'localhost'
125
host = 'localhost'
Line 741... Line 742...
741
  if len(args) != 2:
742
  if len(args) != 2:
742
    print 'setWalletAmountInCart requires 2 args'
743
    print 'setWalletAmountInCart requires 2 args'
743
    sys.exit(1)
744
    sys.exit(1)
744
  pp.pprint(client.setWalletAmountInCart(eval(args[0]),eval(args[1]),))
745
  pp.pprint(client.setWalletAmountInCart(eval(args[0]),eval(args[1]),))
745
 
746
 
-
 
747
elif cmd == 'addItemPricingToCart':
-
 
748
  if len(args) != 2:
-
 
749
    print 'addItemPricingToCart requires 2 args'
-
 
750
    sys.exit(1)
-
 
751
  pp.pprint(client.addItemPricingToCart(eval(args[0]),eval(args[1]),))
-
 
752
 
746
else:
753
else:
747
  print 'Unrecognized method %s' % cmd
754
  print 'Unrecognized method %s' % cmd
748
  sys.exit(1)
755
  sys.exit(1)
749
 
756
 
750
transport.close()
757
transport.close()