コード例 #1
0
ファイル: modef.py プロジェクト: vaveee/TorCMS
class post_cat_random(tornado.web.UIModule):
    def render(self, cat_id, num, with_date=True, with_catalog=True):
        self.mpost = MPost()
        recs = self.mpost.query_cat_random(cat_id, num)
        kwd = {
            'with_date': with_date,
            'with_catalog': with_catalog,
        }
        return self.render_string('{0}/modules/post_list.html'.format(config.torlite_template_name), recs=recs, kwd=kwd)
コード例 #2
0
ファイル: core_modules.py プロジェクト: Ryan007/TorCMS
class post_cat_random(tornado.web.UIModule):
    def render(self, cat_id, num, with_date=True, with_catalog=True):
        self.mpost = MPost()
        recs = self.mpost.query_cat_random(cat_id, num)
        kwd = {
            'with_date': with_date,
            'with_catalog': with_catalog,
        }
        return self.render_string('tplite/modules/post_list.html', recs=recs, kwd=kwd)
コード例 #3
0
ファイル: core_modules.py プロジェクト: ifcheung2012/TorCMS
class post_cat_random(tornado.web.UIModule):
    def render(self, cat_id, num, with_date=True, with_catalog=True):
        self.mpost = MPost()
        recs = self.mpost.query_cat_random(cat_id, num)
        kwd = {
            'with_date': with_date,
            'with_catalog': with_catalog,
        }
        return self.render_string('tplite/modules/post_list.html', recs=recs, kwd=kwd)
コード例 #4
0
class post_cat_random(tornado.web.UIModule):
    def render(self, cat_id, num, with_date=True, with_catalog=True):
        self.mpost = MPost()
        recs = self.mpost.query_cat_random(cat_id, num)
        kwd = {
            'with_date': with_date,
            'with_catalog': with_catalog,
        }
        return self.render_string('{0}/modules/post_list.html'.format(
            config.torlite_template_name),
                                  recs=recs,
                                  kwd=kwd)