adhocracy_core.sheets.asset module

Sheets for managing assets.

interface IHasAssetPool[source]

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

Marker interface for resources that have an asset pool.

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

Bases: adhocracy_core.schema.MappingSchema

Data structure pointing to an asset pool.

interface IAssetMetadata[source]

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

Marker interface for asset metadata.

interface AssetReference[source]

Extends: adhocracy_core.interfaces.SheetToSheet

Reference to an asset.

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

Bases: adhocracy_core.schema.MappingSchema

Data structure storing asset metadata.

interface IAssetData[source]

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

Marker interface for the actual asset data.

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

Bases: adhocracy_core.schema.MappingSchema

Data structure storing for the actual asset data.

class AssetFileDownload[source]

Bases: persistent.Persistent

Wrapper for a File object that allows downloading the asset data.

includeme(config)[source]

Register sheets.