lino_xl.lib.outbox.models

The models.py module for lino_xl.lib.outbox.

(This module's source code is available here.)

Classes

Attachment(id, owner_type, owner_id, mail)

Attachments(*args, **kw)

AttachmentsByController(*args, **kw)

AttachmentsByMail(*args, **kw)

Mail(id, project, user, owner_type, ...)

Mails(*args, **kw)

MailsByController(*args, **kw)

MailsByProject(*args, **kw)

MailsByUser(*args, **kw)

MyOutbox(*args, **kw)

Recipient(*args, **kwargs)

Abstract base for inbox.Recipient and outbox.Recipient.

Recipients(*args, **kw)

RecipientsByMail(*args, **kw)

SendMail([label])

Sends an outbox.Mail as an email.

SentByPartner(*args, **kw)

Shows the Mails that have been sent to a given Partner.

class lino_xl.lib.outbox.models.Recipient(*args, **kwargs)

Bases: lino.core.model.Model

Abstract base for inbox.Recipient and outbox.Recipient.

get_row_permission(ar, state, ba)

Recipients of a Mail may not be edited if the Mail is read-only.

class lino_xl.lib.outbox.models.SendMail(label=None, **kwargs)

Bases: lino.core.actions.Action

Sends an outbox.Mail as an email.

class lino_xl.lib.outbox.models.Mail(id, project, user, owner_type, owner_id, date, subject, body, sent)

Bases: lino.modlib.users.mixins.UserAuthored, lino.modlib.printing.mixins.Printable, lino.modlib.uploads.mixins.UploadController, lino.mixins.ProjectRelated, lino.modlib.gfks.mixins.Controllable

get_row_permission(ar, state, ba)

Mails may not be edited after they have been sent.

class lino_xl.lib.outbox.models.SentByPartner(*args, **kw)

Bases: lino_xl.lib.outbox.models.Mails

Shows the Mails that have been sent to a given Partner.

master

alias of lino_xl.lib.contacts.models.Partner

model

alias of Mail

class lino_xl.lib.outbox.models.Attachment(id, owner_type, owner_id, mail)

Bases: lino.modlib.gfks.mixins.Controllable