Subversion Repositories SmartDukaan

Rev

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

Rev 15251 Rev 17782
Line 102... Line 102...
102
  print '   registerCounter(Counter counter, i64 userId)'
102
  print '   registerCounter(Counter counter, i64 userId)'
103
  print '   searchCounter(string type1, string searchString)'
103
  print '   searchCounter(string type1, string searchString)'
104
  print '   getAllUsersByCounter(i64 counterId)'
104
  print '   getAllUsersByCounter(i64 counterId)'
105
  print '  string getActiveAccessTokenForUser(i64 userId, string source)'
105
  print '  string getActiveAccessTokenForUser(i64 userId, string source)'
106
  print '  bool validateAccessToken(string accessToken)'
106
  print '  bool validateAccessToken(string accessToken)'
-
 
107
  print '  bool addItemsToCart(i64 cartId,  itemQty, string couponCode)'
-
 
108
  print '  string validateCartNew(i64 cartId, string pinCode, i64 sourceId)'
107
  print ''
109
  print ''
108
  sys.exit(0)
110
  sys.exit(0)
109
 
111
 
110
pp = pprint.PrettyPrinter(indent = 2)
112
pp = pprint.PrettyPrinter(indent = 2)
111
host = 'localhost'
113
host = 'localhost'
Line 650... Line 652...
650
  if len(args) != 1:
652
  if len(args) != 1:
651
    print 'validateAccessToken requires 1 args'
653
    print 'validateAccessToken requires 1 args'
652
    sys.exit(1)
654
    sys.exit(1)
653
  pp.pprint(client.validateAccessToken(args[0],))
655
  pp.pprint(client.validateAccessToken(args[0],))
654
 
656
 
-
 
657
elif cmd == 'addItemsToCart':
-
 
658
  if len(args) != 3:
-
 
659
    print 'addItemsToCart requires 3 args'
-
 
660
    sys.exit(1)
-
 
661
  pp.pprint(client.addItemsToCart(eval(args[0]),eval(args[1]),args[2],))
-
 
662
 
-
 
663
elif cmd == 'validateCartNew':
-
 
664
  if len(args) != 3:
-
 
665
    print 'validateCartNew requires 3 args'
-
 
666
    sys.exit(1)
-
 
667
  pp.pprint(client.validateCartNew(eval(args[0]),args[1],eval(args[2]),))
-
 
668
 
655
else:
669
else:
656
  print 'Unrecognized method %s' % cmd
670
  print 'Unrecognized method %s' % cmd
657
  sys.exit(1)
671
  sys.exit(1)
658
 
672
 
659
transport.close()
673
transport.close()