1
Pattern 1 - Primary Group with Basic Governance
2
-----------------------------------------------
4
Set up the preliminaries::
6
>>> from twisted.python import log
9
>>> observer = catcher.append
10
>>> log.addObserver(observer)
12
>>> def printMessages():
14
... logged = catcher.pop(0)
15
... print logged.get("message")[0]
17
>>> from txsoom.network import BroadcastNetwork
18
>>> from txsoom.peer import Peer
20
>>> bNet = BroadcastNetwork()
22
Create a group of objects under a critical limit::
27
They remain as a group::
30
They establish communications with each other::
33
They Elect a proxy for communication with the outside world::