예제 #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
파일: app.py 프로젝트: luckypoem/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()
예제 #3
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()
예제 #4
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()