diff piecrust/plugins/base.py @ 613:e2e955a3bb25

publish: Add publish command. * Add `shell` publisher. * Refactor admin panel's publishing backend to use that, along with the new PID file support.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 04 Feb 2016 08:05:03 -0800
parents eacf0a3afd0c
children ab5c6a8ae90a
line wrap: on
line diff
--- a/piecrust/plugins/base.py	Thu Feb 04 08:03:52 2016 -0800
+++ b/piecrust/plugins/base.py	Thu Feb 04 08:05:03 2016 -0800
@@ -33,6 +33,9 @@
     def getSources(self):
         return []
 
+    def getPublishers(self):
+        return []
+
     def initialize(self, app):
         pass
 
@@ -83,6 +86,9 @@
     def getSources(self):
         return self._getPluginComponents('getSources')
 
+    def getPublishers(self):
+        return self._getPluginComponents('getPublishers')
+
     def _ensureLoaded(self):
         if self._plugins is not None:
             return