Exemple #1
0
 def post(self):
     source_url = self.request.get("source_url")
     source_user = self.request.get("source_user")
     user_name = self.request.get("user")
     logging.info("bbb"+user_name)
     user = User.get_user_by_name(user_name)
     logging.info("aaa"+user.name)
     if not user is None:
         Mention.new(user,source_url,source_user)
Exemple #2
0
 def get(self, name):
     u = User.get_user_by_name(name)
     if u is None:
         return self.error(404)
     self.template_value["u"] = u
     self.template_value["is_following"] = UserFollow.is_following(self.user, name)
     self.template_value["recent_dis"] = Discussion.get_recent_dis(u)
     self.template_value["recent_comment"] = RecentCommentLog.get_recent_comment(u)
     self.template_value["recent_bookmark"] = Bookmark.get_recent_bookmark(u)
     self.template_value["f_tag"] = {"key": "u/%s" % u.name_lower, "title": u.name, "show": True}
     self.render("user.html")
Exemple #3
0
 def get(self):
     user = User.get_user_by_name("ccc") 
     users = UserFollow.get_follower(user)
     for x in users:
         print x.name