Subversion Repositories SmartDukaan

Rev

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

Rev 18644 Rev 18735
Line 107... Line 107...
107
  print '  bool addItemsToCart(i64 cartId,  itemQty, string couponCode)'
107
  print '  bool addItemsToCart(i64 cartId,  itemQty, string couponCode)'
108
  print '  string validateCartNew(i64 cartId, string pinCode, i64 sourceId)'
108
  print '  string validateCartNew(i64 cartId, string pinCode, i64 sourceId)'
109
  print '  bool isAddressEditableForCounter(i64 userId)'
109
  print '  bool isAddressEditableForCounter(i64 userId)'
110
  print '  Address getBillingAddressForUser(i64 userId)'
110
  print '  Address getBillingAddressForUser(i64 userId)'
111
  print '  bool isCreditorAssigned(i64 userId)'
111
  print '  bool isCreditorAssigned(i64 userId)'
-
 
112
  print '  bool isTaxInvoiceEnabledUser(i64 userId)'
112
  print ''
113
  print ''
113
  sys.exit(0)
114
  sys.exit(0)
114
 
115
 
115
pp = pprint.PrettyPrinter(indent = 2)
116
pp = pprint.PrettyPrinter(indent = 2)
116
host = 'localhost'
117
host = 'localhost'
Line 685... Line 686...
685
  if len(args) != 1:
686
  if len(args) != 1:
686
    print 'isCreditorAssigned requires 1 args'
687
    print 'isCreditorAssigned requires 1 args'
687
    sys.exit(1)
688
    sys.exit(1)
688
  pp.pprint(client.isCreditorAssigned(eval(args[0]),))
689
  pp.pprint(client.isCreditorAssigned(eval(args[0]),))
689
 
690
 
-
 
691
elif cmd == 'isTaxInvoiceEnabledUser':
-
 
692
  if len(args) != 1:
-
 
693
    print 'isTaxInvoiceEnabledUser requires 1 args'
-
 
694
    sys.exit(1)
-
 
695
  pp.pprint(client.isTaxInvoiceEnabledUser(eval(args[0]),))
-
 
696
 
690
else:
697
else:
691
  print 'Unrecognized method %s' % cmd
698
  print 'Unrecognized method %s' % cmd
692
  sys.exit(1)
699
  sys.exit(1)
693
 
700
 
694
transport.close()
701
transport.close()