adhocracy_core.sheets.embed module

Embed Sheet.

interface IEmbed[source]

Extends: adhocracy_core.interfaces.ISheet

Market interface for the embed sheet.

interface IEmbedCodeConfig[source]

Interface for embed code config mappings.

embed_code_config_adapter(context: <InterfaceClass adhocracy_core.interfaces.IResource>, request: <InterfaceClass pyramid.interfaces.IRequest>) → {}[source]

Return mapping to render adhocracy_core:templates/embed_code.html.

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

Bases: adhocracy_core.schema.MappingSchema

Embed sheet data structure.

embed_code: html code to embed the context resource in web pages. external_url: canonical URL that embeds the context resource.

includeme(config)[source]

Register sheets and embed code config adapter.