diff options
Diffstat (limited to 'Mailman/interfaces/chain.py')
| -rw-r--r-- | Mailman/interfaces/chain.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Mailman/interfaces/chain.py b/Mailman/interfaces/chain.py index 8c0837820..eca663b30 100644 --- a/Mailman/interfaces/chain.py +++ b/Mailman/interfaces/chain.py @@ -69,6 +69,16 @@ class IChain(Interface): :return: an IChainLink. """ + def get_rule(name): + """Lookup and return the named rule. + + :param name: The name of the rule to return. This may be a globally + registered rule name, in which case it must be unique, or it may + be a rule defined locally to the chain. + :return: The named `IRule`. + :raises: KeyError if the named rule cannot be found. + """ + class IMutableChain(IChain): |
