Mercurial > piecrust2
diff piecrust/plugins/base.py @ 3:f485ba500df3
Gigantic change to basically make PieCrust 2 vaguely functional.
- Serving works, with debug window.
- Baking works, multi-threading, with dependency handling.
- Various things not implemented yet.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 10 Aug 2014 23:43:16 -0700 |
parents | aaa8fb7c8918 |
children | 343d08ef5668 |
line wrap: on
line diff
--- a/piecrust/plugins/base.py Wed Dec 25 22:16:46 2013 -0800 +++ b/piecrust/plugins/base.py Sun Aug 10 23:43:16 2014 -0700 @@ -23,12 +23,18 @@ def getCommands(self): return [] + def getCommandExtensions(self): + return [] + def getRepositories(self): return [] def getBakerAssistants(self): return [] + def getSources(self): + return [] + def initialize(self, app): pass @@ -68,12 +74,18 @@ def getCommands(self): return self._getPluginComponents('getCommands') + def getCommandExtensions(self): + return self._getPluginComponents('getCommandExtensions') + def getRepositories(self): return self._getPluginComponents('getRepositories', True) def getBakerAssistants(self): return self._getPluginComponents('getBakerAssistants') + def getSources(self): + return self._getPluginComponents('getSources') + def _ensureLoaded(self): if self._plugins is not None: return