Mercurial > piecrust2
comparison piecrust/publishing/base.py @ 805:fd694f1297c7
config: Cleanup config loading code. Add support for a `local.yml` config.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 10 Oct 2016 21:41:59 -0700 |
parents | f69fdc601845 |
children | 13e8b50a2113 |
comparison
equal
deleted
inserted
replaced
804:08e6484a2600 | 805:fd694f1297c7 |
---|---|
43 return | 43 return |
44 | 44 |
45 def getConfigValue(self, name, default_value=None): | 45 def getConfigValue(self, name, default_value=None): |
46 if self.has_url_config: | 46 if self.has_url_config: |
47 raise Exception("This publisher only has a URL configuration.") | 47 raise Exception("This publisher only has a URL configuration.") |
48 return try_get_dict_value(self.config, name, default_value) | 48 return try_get_dict_value(self.config, name, default=default_value) |
49 | 49 |
50 def run(self, ctx): | 50 def run(self, ctx): |
51 raise NotImplementedError() | 51 raise NotImplementedError() |
52 | 52 |
53 def getBakedFiles(self, ctx): | 53 def getBakedFiles(self, ctx): |