angelos.portfolio.domain.accept

Creating new entity portfolio for Person, Ministry and Church including Keys and PrivateKeys documents.

class angelos.portfolio.domain.accept.AcceptDomain

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

Accept domain.

apply() → bool

Perform logic to validate domain for current.

validate(*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.domain.accept.AcceptUpdatedDomain

Bases: angelos.portfolio.policy.UpdatablePolicy, angelos.common.policy.PolicyValidator, angelos.common.policy.PolicyMixin

Validate updated domain.

apply() → bool

Perform logic to validate updated network with current.

validate(*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.accept.DomainAcceptException

Bases: RuntimeError

Problems with the process that is not policy.

DOMAIN_ALREADY_IN_PORTFOLIO = ('Domain document already present in portfolio.', 100)
DOMAIN_NOT_IN_PORTFOLIO = ('Domain document not present in portfolio.', 101)