angelos.portfolio.domain.create

Creating new domain document for new portfolio.

class angelos.portfolio.domain.create.CreateDomain

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

Generate domain document and add to private portfolio.

apply() → bool

Perform logic to create a new domain with portfolio.

perform(*args, **kwargs)

Wrapping the callable.

Parameters
  • self (class) – Method owner

  • *args – Any arguments

  • **kwargs – Any keyword arguments

Returns

The result from the callable

exception angelos.portfolio.domain.create.DomainCreateException

Bases: RuntimeError

Problems with the process that is not policy.

DOMAIN_IN_PORTFOLIO = ('Domain document already present in portfolio.', 100)