blob: 55c09c4a51ee83744422a979de5ce3ab4f01da8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import os
from mailman.interfaces.plugin import IPlugin
from public import public
from zope.interface import implementer
@public
@implementer(IPlugin)
class ExamplePlugin:
def pre_hook(self):
if os.environ.get('DEBUG_HOOKS'):
print("I'm in my pre-hook")
def post_hook(self):
if os.environ.get('DEBUG_HOOKS'):
print("I'm in my post-hook")
@property
def resource(self):
return None
|