plone/plone.behavior ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python package for Plone that lets people register and look up reusable behaviors for objects.

I want it to support defining a behavior with a title, description, name, and the interface it provides, then register it through ZCML so it can be looked up later by either the short name or the interface name. It should also handle optional behavior factories, marker interfaces, and the case where a behavior is just a marker with no factory at all.

Please include the helper for finding a behavior registration by name, and make sure the package plays nicely with the existing Plone and Zope style of adapters and interfaces. If there’s any needed configuration or setup pattern, add a clear example in the docs so it’s obvious how to use it in another project. Keep it focused on behavior registration and lookup, not on deciding when a behavior is enabled, since that part should stay outside this package.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab