Subversion Repositories SmartDukaan

Rev

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

Rev 1590 Rev 1596
Line 66... Line 66...
66
  print '  bool updateMyResearch(i64 userId, i64 itemId)'
66
  print '  bool updateMyResearch(i64 userId, i64 itemId)'
67
  print '  void deleteItemFromMyResearch(i64 userId, i64 itemId)'
67
  print '  void deleteItemFromMyResearch(i64 userId, i64 itemId)'
68
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
68
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
69
  print '  Widget getBrowseHistory(i64 userId)'
69
  print '  Widget getBrowseHistory(i64 userId)'
70
  print '  void mergeBrowseHistory(i64 fromUserId, i64 toUserId)'
70
  print '  void mergeBrowseHistory(i64 fromUserId, i64 toUserId)'
-
 
71
  print '  i64 getUserCount(UserType userType)'
71
  print ''
72
  print ''
72
  sys.exit(0)
73
  sys.exit(0)
73
 
74
 
74
pp = pprint.PrettyPrinter(indent = 2)
75
pp = pprint.PrettyPrinter(indent = 2)
75
host = 'localhost'
76
host = 'localhost'
Line 396... Line 397...
396
  if len(args) != 2:
397
  if len(args) != 2:
397
    print 'mergeBrowseHistory requires 2 args'
398
    print 'mergeBrowseHistory requires 2 args'
398
    sys.exit(1)
399
    sys.exit(1)
399
  pp.pprint(client.mergeBrowseHistory(eval(args[0]),eval(args[1]),))
400
  pp.pprint(client.mergeBrowseHistory(eval(args[0]),eval(args[1]),))
400
 
401
 
-
 
402
elif cmd == 'getUserCount':
-
 
403
  if len(args) != 1:
-
 
404
    print 'getUserCount requires 1 args'
-
 
405
    sys.exit(1)
-
 
406
  pp.pprint(client.getUserCount(eval(args[0]),))
-
 
407
 
401
transport.close()
408
transport.close()