Subversion Repositories SmartDukaan

Rev

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

Rev 5553 Rev 5623
Line 87... Line 87...
87
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
87
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
88
  print '  i64 getCartsWithCouponCount(string couponCode)'
88
  print '  i64 getCartsWithCouponCount(string couponCode)'
89
  print '  void increaseTrustLevel(i64 userId, double trustLevelDelta)'
89
  print '  void increaseTrustLevel(i64 userId, double trustLevelDelta)'
90
  print '  double getTrustLevel(i64 userId)'
90
  print '  double getTrustLevel(i64 userId)'
91
  print '  bool showCODOption(i64 cartId, i64 sourceId, string pincode)'
91
  print '  bool showCODOption(i64 cartId, i64 sourceId, string pincode)'
-
 
92
  print '   getUserEmails(i64 startDate, i64 endDate)'
92
  print ''
93
  print ''
93
  sys.exit(0)
94
  sys.exit(0)
94
 
95
 
95
pp = pprint.PrettyPrinter(indent = 2)
96
pp = pprint.PrettyPrinter(indent = 2)
96
host = 'localhost'
97
host = 'localhost'
Line 545... Line 546...
545
  if len(args) != 3:
546
  if len(args) != 3:
546
    print 'showCODOption requires 3 args'
547
    print 'showCODOption requires 3 args'
547
    sys.exit(1)
548
    sys.exit(1)
548
  pp.pprint(client.showCODOption(eval(args[0]),eval(args[1]),args[2],))
549
  pp.pprint(client.showCODOption(eval(args[0]),eval(args[1]),args[2],))
549
 
550
 
-
 
551
elif cmd == 'getUserEmails':
-
 
552
  if len(args) != 2:
-
 
553
    print 'getUserEmails requires 2 args'
-
 
554
    sys.exit(1)
-
 
555
  pp.pprint(client.getUserEmails(eval(args[0]),eval(args[1]),))
-
 
556
 
550
else:
557
else:
551
  print 'Unrecognized method %s' % cmd
558
  print 'Unrecognized method %s' % cmd
552
  sys.exit(1)
559
  sys.exit(1)
553
 
560
 
554
transport.close()
561
transport.close()