def get(self, limit=None): if self.current_user: self.render(tornado_bz.getTName(self, 'messages_app')) else: if limit == '': limit = None messages, more, anchor = oper.getMessages(limit, self.current_user) self.render(tornado_bz.getTName(self), messages=messages, more=more, anchor=anchor)
def get(self, name='*'): main_list = oper.getMainList() self.render(tornado_bz.getTName(self, 'index'), title=TITLE, main_list=main_list, time=time)
def get(self, name): # 如果有html后缀,剔除 name = oper.removeHtmlSuffix(name) html = oper.getHtmlByName(name) main_list = [html] self.render(tornado_bz.getTName(self, 'index'), title=name, main_list=main_list, time=time)
def get(self, name='*'): html_list = oper.getHtmlListByNameLike(name) for html in html_list: # html.content = oper.getHtmlContent(html.name) html.content = '' self.render(tornado_bz.getTName(self, 'index'), title=TITLE, main_list=html_list, time=time)
def get(self, name='*'): lists = getList(str(name)) if name == '*': title = 'zpf' else: title = name refreshKeyNamesCount(name, getLen(lists)) global key_names global key_names_sorted global click_count self.render(tornado_bz.getTName(self), title=title, lists=lists, key_names=key_names_sorted, click_count=click_count, time=time )
def get(self, name): if name is None: name = 'index' html = name.rsplit('.', 1) if len(html) > 1 and html[1] == 'html': name = html[0] content = getHtmlContent(name) global key_names global key_names_sorted global new_key_names count = addClickCount(name) self.render(tornado_bz.getTName(self), title=name, content=content, key_names=key_names_sorted, new_key_names=new_key_names, count=count )
def get(self): self.render(tornado_bz.getTName(self, 'about'))
def get(self): url = wechat_oper.getQrUrl(self.wechat, self.get_user_info().user_name) self.render(tornado_bz.getTName(self), url=url)
def get(self): self.render(tornado_bz.getTName(self, 'bigzhu'))
def get(self, name='*'): title = 'zpf' lists = getTenContent(name) self.render(tornado_bz.getTName(self), title=title, lists=lists, time=time)
def get(self): self.render(tornado_bz.getTName(self))
def get(self): type = self.get_argument('t', None, True) id = self.get_argument('id', None, True) messages = public_db.getMessages(type=type, id=id) self.render(tornado_bz.getTName(self, "main"), messages=messages)
def get(self): #openid = self.get_secure_cookie("openid") # wechat_oper.addWechatUser(openid) # print openid self.render(tornado_bz.getTName(self))
def get(self, limit=None): self.render(tornado_bz.getTName(self, 'app'))