angelos.portfolio.network.accept¶
Creating new entity portfolio for Person, Ministry and Church including Keys and PrivateKeys documents.
-
class
angelos.portfolio.network.accept.
AcceptNetwork
¶ Bases:
angelos.portfolio.policy.DocumentPolicy
,angelos.common.policy.PolicyValidator
,angelos.common.policy.PolicyMixin
Validate network.
-
apply
() → bool¶ Perform logic to validate network 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.network.accept.
AcceptUpdatedNetwork
¶ Bases:
angelos.portfolio.policy.UpdatablePolicy
,angelos.common.policy.PolicyValidator
,angelos.common.policy.PolicyMixin
Validate updated network.
-
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.network.accept.
NetworkAcceptException
¶ Bases:
RuntimeError
Problems with the process that is not policy.
-
NETWORK_ALREADY_IN_PORTFOLIO
= ('Network document already present in portfolio.', 100)¶
-
NETWORK_NOT_IN_PORTFOLIO
= ('Network document not present in portfolio.', 101)¶
-