angelos.portfolio.message.create

class angelos.portfolio.message.create.CreateInstant

Bases: angelos.portfolio.policy.IssuePolicy, angelos.common.policy.PolicyPerformer, angelos.common.policy.PolicyMixin

apply() → bool

Implement policy to be applied here, then decorate with @policy(section=b’I’ sn=0).

perform(*args, **kwargs)

Wrapping the callable.

Parameters
  • self (class) – Method owner

  • *args – Any arguments

  • **kwargs – Any keyword arguments

Returns

The result from the callable

class angelos.portfolio.message.create.CreateMail

Bases: angelos.portfolio.policy.IssuePolicy, angelos.common.policy.PolicyPerformer, angelos.common.policy.PolicyMixin

apply() → bool

Implement policy to be applied here, then decorate with @policy(section=b’I’ sn=0).

perform(*args, **kwargs)

Wrapping the callable.

Parameters
  • self (class) – Method owner

  • *args – Any arguments

  • **kwargs – Any keyword arguments

Returns

The result from the callable

class angelos.portfolio.message.create.CreateNote

Bases: angelos.portfolio.policy.IssuePolicy, angelos.common.policy.PolicyPerformer, angelos.common.policy.PolicyMixin

apply() → bool

Implement policy to be applied here, then decorate with @policy(section=b’I’ sn=0).

perform(*args, **kwargs)

Wrapping the callable.

Parameters
  • self (class) – Method owner

  • *args – Any arguments

  • **kwargs – Any keyword arguments

Returns

The result from the callable

class angelos.portfolio.message.create.CreateReport

Bases: angelos.portfolio.policy.IssuePolicy, angelos.common.policy.PolicyPerformer, angelos.common.policy.PolicyMixin

apply() → bool

Implement policy to be applied here, then decorate with @policy(section=b’I’ sn=0).

perform(*args, **kwargs)

Wrapping the callable.

Parameters
  • self (class) – Method owner

  • *args – Any arguments

  • **kwargs – Any keyword arguments

Returns

The result from the callable

class angelos.portfolio.message.create.CreateShare

Bases: angelos.portfolio.policy.IssuePolicy, angelos.common.policy.PolicyPerformer, angelos.common.policy.PolicyMixin

apply() → bool

Implement policy to be applied here, then decorate with @policy(section=b’I’ sn=0).

perform(*args, **kwargs)

Wrapping the callable.

Parameters
  • self (class) – Method owner

  • *args – Any arguments

  • **kwargs – Any keyword arguments

Returns

The result from the callable

class angelos.portfolio.message.create.MailBuilder(sender: angelos.portfolio.collection.PrivatePortfolio, mail: angelos.document.messages.Mail)

Bases: object

Mail building class.

MIME = ('application/octet-stream',)
add(name: unicode, data: bytes, mime: unicode)

Add an attachment to the mail.

done()angelos.document.messages.Mail

Finalize the mail message.

draft()angelos.document.messages.Mail

Export draft mail document

message(subject: unicode, body: unicode, reply: Union[angelos.document.messages.Mail, uuid.UUID] = None)

Add mail body, subject and reply-to.

class angelos.portfolio.message.create.ReportBuilder(sender: angelos.portfolio.collection.PrivatePortfolio, mail: angelos.document.messages.Mail)

Bases: angelos.portfolio.message.create.MailBuilder

report(message: Union[angelos.document.messages.Mail, angelos.document.messages.Instant], envelope: angelos.document.envelope.Envelope, claims: List[str], msg: unicode)angelos.document.messages.Report

Create a Share message containing documents to be shared.

class angelos.portfolio.message.create.ShareBuilder(sender: angelos.portfolio.collection.PrivatePortfolio, mail: angelos.document.messages.Mail)

Bases: angelos.portfolio.message.create.MailBuilder

share(portfolio: angelos.portfolio.collection.Portfolio)angelos.document.messages.Share

Create a Share message containing documents to be shared.