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