adhocracy_core.sheets.image module

image sheet.

interface IImageMetadata[source]

Extends: adhocracy_core.sheets.asset.IAssetMetadata

Marker interface for images.

validate_image_data_mimetype(node: adhocracy_core.schema.SchemaNode, value)[source]

Validate image mime type of value.

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

Bases: adhocracy_core.sheets.asset.AssetMetadataSchema

Data structure storing image asset metadata.

interface IImageReference[source]

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

Marker interface for an image reference.

interface ImageReference[source]

Extends: adhocracy_core.interfaces.SheetToSheet

Reference to an image.

picture_url_validator(node, value)[source]

Validate picture url.

get_asset_choices(context, request) → [][source]

Return asset choices based on the available assets service.

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

Bases: adhocracy_core.schema.MappingSchema

Data structure for the image reference sheet.

includeme(config)[source]

Register sheets.