crdt

Orchestrating module meant to emulate a site with its policy and document operations

Rights

 Rights (dict=None, **kwargs)

Class gathering rights


CRDTp

 CRDTp (site_from:crdt.sites.Site, ac_dags:__main__.Rights=<factory>,
        waiting_pool:List[crdt.op.Op]=<factory>)

Class rights and document operations

Type Default Details
site_from Site site this CRDT acts as
ac_dags Rights
waiting_pool List

CRDTp.prepare

 CRDTp.prepare (site_to:crdt.sites.Site,
                right:Literal['admin','write','read'])

Creates an operation pertaining to one site and right (an access tuple) without integrating it

To integrate it, use CRDTp.effect.

Type Details
site_to Site Targeted crdt.sites.Site
right Literal Targeted right
Returns Op Operation pending integration

CRDTp.effect

 CRDTp.effect (op:crdt.op.Op)

Integrates an operation

Type Details
op Op Operation to be integrated
Returns Optional List of integrated crdt.op.Op (op + waiting)