Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:40fa08b261b9 | 3:f485ba500df3 |
---|---|
21 return [] | 21 return [] |
22 | 22 |
23 def getCommands(self): | 23 def getCommands(self): |
24 return [] | 24 return [] |
25 | 25 |
26 def getCommandExtensions(self): | |
27 return [] | |
28 | |
26 def getRepositories(self): | 29 def getRepositories(self): |
27 return [] | 30 return [] |
28 | 31 |
29 def getBakerAssistants(self): | 32 def getBakerAssistants(self): |
33 return [] | |
34 | |
35 def getSources(self): | |
30 return [] | 36 return [] |
31 | 37 |
32 def initialize(self, app): | 38 def initialize(self, app): |
33 pass | 39 pass |
34 | 40 |
66 return self._getPluginComponents('getImporters') | 72 return self._getPluginComponents('getImporters') |
67 | 73 |
68 def getCommands(self): | 74 def getCommands(self): |
69 return self._getPluginComponents('getCommands') | 75 return self._getPluginComponents('getCommands') |
70 | 76 |
77 def getCommandExtensions(self): | |
78 return self._getPluginComponents('getCommandExtensions') | |
79 | |
71 def getRepositories(self): | 80 def getRepositories(self): |
72 return self._getPluginComponents('getRepositories', True) | 81 return self._getPluginComponents('getRepositories', True) |
73 | 82 |
74 def getBakerAssistants(self): | 83 def getBakerAssistants(self): |
75 return self._getPluginComponents('getBakerAssistants') | 84 return self._getPluginComponents('getBakerAssistants') |
85 | |
86 def getSources(self): | |
87 return self._getPluginComponents('getSources') | |
76 | 88 |
77 def _ensureLoaded(self): | 89 def _ensureLoaded(self): |
78 if self._plugins is not None: | 90 if self._plugins is not None: |
79 return | 91 return |
80 | 92 |