angelos.portfolio.node.accept

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

class angelos.portfolio.node.accept.AcceptNode

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

Accept node.

apply() → bool

Perform logic to validate node 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

class angelos.portfolio.node.accept.AcceptUpdatedNode

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

Accept updated node.

apply() → bool

Perform logic to accept updated node 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.node.accept.NodeUpdateException

Bases: RuntimeError

Problems with the process that is not policy.

DOMAIN_NOT_IN_PORTFOLIO = ('Domain not present in portfolio.', 101)
NODE_ALREADY_PORTFOLIO = ('Node already present in portfolio.', 102)
NODE_NOT_IN_PORTFOLIO = ('Node document not present in portfolio.', 100)