Subversion Repositories SmartDukaan

Rev

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

Rev 3858 Rev 4668
Line 89... Line 89...
89
  print '  void deleteItemFromMyResearch(i64 userId, i64 itemId)'
89
  print '  void deleteItemFromMyResearch(i64 userId, i64 itemId)'
90
  print '   getBrowseHistoryItems(i64 userId)'
90
  print '   getBrowseHistoryItems(i64 userId)'
91
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
91
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
92
  print '  i64 getCartsWithCouponCount(string couponCode)'
92
  print '  i64 getCartsWithCouponCount(string couponCode)'
93
  print '  void increaseTrustLevel(i64 userId, double trustLevelDelta)'
93
  print '  void increaseTrustLevel(i64 userId, double trustLevelDelta)'
-
 
94
  print '  bool showCODOption(i64 cartId, i64 sourceId, string pincode)'
94
  print ''
95
  print ''
95
  sys.exit(0)
96
  sys.exit(0)
96
 
97
 
97
pp = pprint.PrettyPrinter(indent = 2)
98
pp = pprint.PrettyPrinter(indent = 2)
98
host = 'localhost'
99
host = 'localhost'
Line 559... Line 560...
559
  if len(args) != 2:
560
  if len(args) != 2:
560
    print 'increaseTrustLevel requires 2 args'
561
    print 'increaseTrustLevel requires 2 args'
561
    sys.exit(1)
562
    sys.exit(1)
562
  pp.pprint(client.increaseTrustLevel(eval(args[0]),eval(args[1]),))
563
  pp.pprint(client.increaseTrustLevel(eval(args[0]),eval(args[1]),))
563
 
564
 
-
 
565
elif cmd == 'showCODOption':
-
 
566
  if len(args) != 3:
-
 
567
    print 'showCODOption requires 3 args'
-
 
568
    sys.exit(1)
-
 
569
  pp.pprint(client.showCODOption(eval(args[0]),eval(args[1]),args[2],))
-
 
570
 
564
else:
571
else:
565
  print 'Unrecognized method %s' % cmd
572
  print 'Unrecognized method %s' % cmd
566
  sys.exit(1)
573
  sys.exit(1)
567
 
574
 
568
transport.close()
575
transport.close()