def user(self): if self.name: return Database.get_user(self.name) else: return None
def get_response(self): data = dict() data["site_title"] = "个人资料_" + self.site_name data["user"] = Database.get_user(self.name) data["xz"] = xz['xing_zuo'] self.html("normal/profile.html", data=data)