Skip to content

leadimage and richtext have factories and point to the wrong marker-interfaces #476

Open
@iham

Description

according to the docs on plone (see quote below) a behavior (LeadImage) implementing a factory "needs" a marker interface different from the behavior interface (ILeadImage)

this is currently not registered/implemented and i stumbled into troubles after i wanted to implement a different factory for the ILeadImage behavior for a certain custom contenttype using this behavior.

i will fix and commit that and hope for a fast release on this one, as it will not break any tests

plone.behavior’s marker support can be used in two ways:
As the behavior interface itself. In this case, there is no behavior adapter factory. The behavior interface and the marker interface are one and the same.
As a supplement to a standard behavior adapter. In this case, a factory is provided, and the behavior interface (which the behavior adapter factory implements) is different to the marker interface.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions