New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PLIP 20239: Behavior name in ZCML directive, registration lookup utility #2
Conversation
48da195
to
4a506c7
Compare
What if I want to replace a core behavior, so that every time code looks it up by name it gets my replacement behavior instead of the core one? Doesn't look like that is possible with this implementation. |
@do3cc +1 for the fallback @davisagli at the moment you have to register a new behavior too - which gets a new name by |
…ior registrations by new plone.behaviors.registration.lookup_behavior function.
…etter inofmration about whats going on
4a506c7
to
9ef9099
Compare
First I rebased master and now I took care to always register the |
Lets get jenkins opinion about this |
State here: full documentation in |
Documentation for name was added to README.rst.
http://jenkins.plone.org/view/All/job/pull-request-4.3/24/
|
@@ -88,6 +89,20 @@ After this is done you can adapt a context to ``ILockingSupport`` as normal:: | |||
if locking is not None: | |||
locking.lock() | |||
|
|||
The ``name`` is can be used for lookup instead of the full dotted name of the interface:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-is
tests ok |
PLIP 20239: Behavior name in ZCML directive, registration lookup utility
When I start my plone-coredev 4.3 buildout, I now get these warnings:
Two things:
|
+1 to fix them, its a wrong registration (predicting to bind for something that has no effect), the change just shows it, nothing new. |
According to http://comments.gmane.org/gmane.comp.web.zope.plone.devel/34834 this pull request introduces behavior short names which are set at ZCML registration time and should later be used for behavior lookup on dexterity content and for behavior introspection.
This change is 100% B/C and only logs a warning at instance startup if a behavior registration has no name set.
More to come in downstream packages
cheers