aboutsummaryrefslogtreecommitdiff
path: root/src/pgpmailman/plugin.py
blob: 5ae51a00c9c5775be21f83f3198f37813ff7c16a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
""" A PGP plugin for GNU Mailman."""

from mailman.interfaces.plugin import IPlugin
from pgpmailman.rest.root import RESTRoot
from public import public
from zope.interface import implementer


@public
@implementer(IPlugin)
class PGPMailman:

    def __init__(self):
        self._rest = RESTRoot()

    def pre_hook(self):
        """See `IPlugin`."""
        pass

    def post_hook(self):
        """See `IPlugin`."""
        pass

    def rest_object(self):
        """See `IPlugin`."""
        return self._rest