l.s.m.i.IEmailCommand(Interface) : interface documentation

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

Known subclasses: lp.services.mail.interfaces.IBugEditEmailCommand, lp.services.mail.interfaces.IBugEmailCommand, lp.services.mail.interfaces.IBugTaskEditEmailCommand, lp.services.mail.interfaces.IBugTaskEmailCommand

An email command.

Email commands can be embedded in mails sent to Launchpad. For example in comments to bugs sent via email, you can include:

private yes

in order to make the bug private.

Method execute Execute the command in a context.
Method setAttributeValue Set the value of the attribute.
Method __str__ Return a textual representation of the command and its arguments.
def execute(context):
Execute the command in a context.
def setAttributeValue(context, attr_name, attr_value):
Set the value of the attribute.

Subclasses may want to override this if, for example, the attribute is set through a special method instead of a normal attribute.

def __str__():
Return a textual representation of the command and its arguments.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.