コード例 #1
0
ファイル: app.py プロジェクト: ibigbug/sblog
    def _load_writers(self):
        self.logger.info("Loading writers...")
        from sblog.writers import IndexWriter

        self.logger.info("IndexWriter loaded.")
        from sblog.writers import PostWriter

        self.logger.info("PostWriter loaded.")
        from sblog.writers import MetaWriter

        self.logger.info("MetaWriter loaded.")
        from sblog.writers import TagWriter

        self.logger.info("TagWriter loaded.")
        from sblog.writers import FeedWriter

        self.logger.info("FeedWriter loaded.")

        mw = MetaWriter(self)
        self.logger.info("Running MetaWriter.")
        mw.run()
        tw = TagWriter(self)
        self.logger.info("Running TagWriter.")
        tw.run()
        iw = IndexWriter(self)
        self.logger.info("Running IndexWriter.")
        iw.run()
        pw = PostWriter(self)
        self.logger.info("Running PostWriter.")
        pw.run()
        fw = FeedWriter(self)
        self.logger.info("Running FeedWriter.")
        fw.run()
コード例 #2
0
ファイル: tests.py プロジェクト: luckypoem/sblog
def writer_test():

    from sblog.writers import IndexWriter
    from sblog.writers import PostWriter
    from sblog.writers import TagWriter
    from sblog.writers import FeedWriter
    from sblog.writers import MetaWriter

    mw = MetaWriter(app)
    mw.run()
    tw = TagWriter(app)
    tw.run()
    iw = IndexWriter(app)
    iw.run()
    pw = PostWriter(app)
    pw.run()
    fw = FeedWriter(app)
    fw.run()
コード例 #3
0
ファイル: tests.py プロジェクト: ibigbug/sblog
def writer_test():

    from sblog.writers import IndexWriter
    from sblog.writers import PostWriter
    from sblog.writers import TagWriter
    from sblog.writers import FeedWriter
    from sblog.writers import MetaWriter

    mw = MetaWriter(app)
    mw.run()
    tw = TagWriter(app)
    tw.run()
    iw = IndexWriter(app)
    iw.run()
    pw = PostWriter(app)
    pw.run()
    fw = FeedWriter(app)
    fw.run()