angelos.portfolio.network.create¶
Creating new domain document for new portfolio.
-
class
angelos.portfolio.network.create.CreateNetwork¶ Bases:
angelos.portfolio.policy.DocumentPolicy,angelos.portfolio.node.policy.NodePolicy,angelos.common.policy.PolicyPerformer,angelos.common.policy.PolicyMixinGenerate network document and add to private portfolio.
-
apply() → bool¶ Perform logic to create a new network 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.network.create.NetworkCreateException¶ Bases:
RuntimeError-
DOMAIN_NOT_PRESENT= ('domain necessary to generate network', 102)¶
-
NETWORK_ALREADY_PRESENT= ('Check that there is not already a network document', 103)¶
-
NODES_NOT_PRESENT= ('At least one node necessary to generate network', 100)¶
-