adhocracy_core.sheets.relation module

Sheets for statements about relations between process content/comments.

interface IPolarization[source]

Extends: adhocracy_core.interfaces.IPredicateSheet, adhocracy_core.interfaces.ISheetReferenceAutoUpdateMarker

Marker interface for the polarization sheet.

interface IPolarizable[source]

Extends: adhocracy_core.interfaces.ISheet, adhocracy_core.interfaces.ISheetReferenceAutoUpdateMarker

Marker interface for resources than can be polarized.

interface ICanPolarize[source]

Extends: adhocracy_core.interfaces.ISheet

Marker interface for resources that can polarize.

class Position(*arg, **kw)[source]

Bases: adhocracy_core.schema.SingleLine

Schema node for the side (pro or contra).

missing = <colander._drop object>
default = 'pro'
validator = <colander.OneOf object>
interface PolarizationSubjectReference[source]

Extends: adhocracy_core.interfaces.SheetToSheet

Reference from polarization to polarize.

interface PolarizationObjectReference[source]

Extends: adhocracy_core.interfaces.SheetToSheet

Reference from polarization to polarized resource.

class PolarizationSchema(*arg, **kw)[source]

Bases: adhocracy_core.schema.MappingSchema

Polarizable sheet data structure.

position: the position in the debate, ‘pro’ or ‘contra’.

class CanPolarizeSchema(*arg, **kw)[source]

Bases: adhocracy_core.schema.MappingSchema

CanPolarize sheet data structure.

class PolarizableSchema(*arg, **kw)[source]

Bases: adhocracy_core.schema.MappingSchema

Polarizable sheet data structure.

post_pool: Pool to post adhocracy_core.resource.IPolarization.

includeme(config)[source]

Register sheets, adapters and index views.