Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
    def get(self, name='*'):
        main_list = oper.getMainList()

        self.render(tornado_bz.getTName(self, 'index'),
                    title=TITLE,
                    main_list=main_list,
                    time=time)
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
    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)
Exemplo n.º 6
0
    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
                    )
Exemplo n.º 7
0
    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
                    )
Exemplo n.º 8
0
 def get(self):
     self.render(tornado_bz.getTName(self, 'about'))
Exemplo n.º 9
0
 def get(self):
     url = wechat_oper.getQrUrl(self.wechat, self.get_user_info().user_name)
     self.render(tornado_bz.getTName(self), url=url)
Exemplo n.º 10
0
 def get(self):
     self.render(tornado_bz.getTName(self, 'bigzhu'))
Exemplo n.º 11
0
    def get(self, name='*'):
        title = 'zpf'
        lists = getTenContent(name)

        self.render(tornado_bz.getTName(self), title=title, lists=lists, time=time)
Exemplo n.º 12
0
 def get(self):
     self.render(tornado_bz.getTName(self, 'bigzhu'))
Exemplo n.º 13
0
 def get(self):
     self.render(tornado_bz.getTName(self))
Exemplo n.º 14
0
 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)
Exemplo n.º 15
0
    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):
     #openid = self.get_secure_cookie("openid")
     # wechat_oper.addWechatUser(openid)
     # print openid
     self.render(tornado_bz.getTName(self))
Exemplo n.º 17
0
 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)
Exemplo n.º 18
0
 def get(self, limit=None):
     self.render(tornado_bz.getTName(self, 'app'))
 def get(self):
     self.render(tornado_bz.getTName(self))
Exemplo n.º 20
0
 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)