Mercurial > piecrust2
view piecrust/publishing/base.py @ 614:a2d9ef307a08
publish: Make the `shell` log update faster by flushing the pipe.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 04 Feb 2016 21:49:15 -0800 |
parents | e2e955a3bb25 |
children | 8f9c0bdb3724 |
line wrap: on
line source
class PublishingContext(object): def __init__(self): self.custom_logging_file = None class Publisher(object): def __init__(self, app, target): self.app = app self.target = target self.is_using_custom_logging = False self.log_file_path = None def getConfig(self): return self.app.config.get('publish/%s' % self.target) def getConfigValue(self, name): return self.app.config.get('publish/%s/%s' % (self.target, name)) def run(self, ctx): raise NotImplementedError()