aboutsummaryrefslogtreecommitdiff
path: root/src/pgpmailman/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pgpmailman/plugin.py')
-rw-r--r--src/pgpmailman/plugin.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/pgpmailman/plugin.py b/src/pgpmailman/plugin.py
new file mode 100644
index 0000000..0608bd0
--- /dev/null
+++ b/src/pgpmailman/plugin.py
@@ -0,0 +1,24 @@
+from mailman.interfaces.plugin import IPlugin
+from public import public
+from zope.interface import implementer
+
+from pgpmailman.rest.root import RESTRoot
+
+
+@public
+@implementer(IPlugin)
+class PGPMailman:
+
+ name = 'pgpmailman'
+
+ def __init__(self):
+ self._rest = RESTRoot()
+
+ def pre_hook(self):
+ pass
+
+ def post_hook(self):
+ pass
+
+ def rest_object(self):
+ return self._rest