l.s.m.c.EmailCommand : class documentation

Part of lp.services.mail.commands View In Hierarchy

Known subclasses: lp.bugs.mail.commands.AffectsEmailCommand, lp.bugs.mail.commands.BugEmailCommand, lp.bugs.mail.commands.CVEEmailCommand, lp.bugs.mail.commands.DuplicateEmailCommand, lp.bugs.mail.commands.PrivateEmailCommand, lp.bugs.mail.commands.ReplacedByImportanceCommand, lp.bugs.mail.commands.SecurityEmailCommand, lp.bugs.mail.commands.SubscribeEmailCommand, lp.bugs.mail.commands.TagEmailCommand, lp.bugs.mail.commands.UnsubscribeEmailCommand, lp.code.mail.codehandler.CodeReviewEmailCommand, lp.services.mail.commands.EditEmailCommand, lp.services.mail.tests.test_commands.CommandOne, lp.services.mail.tests.test_commands.CommandTwo

Represents a command.

Both name the values in the args list are strings.

Method __init__ Undocumented
Method convertArguments Converts the string argument to Python objects.
Method __str__ See IEmailCommand.
Method _ensureNumberOfArguments Check that the number of arguments is correct.
def __init__(self, name, string_args):
Undocumented
def _ensureNumberOfArguments(self):
Check that the number of arguments is correct.

Raise an EmailProcessingError

def convertArguments(self, context):
Converts the string argument to Python objects.

Returns a dict with names as keys, and the Python objects as values.

def __str__(self):
See IEmailCommand.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.