[Product-Developers] Re: Limiting schema extenders to one Plone site?

Raphael Ritz r.ritz at biologie.hu-berlin.de
Fri Jun 13 09:24:25 UTC 2008


Martin Aspeli wrote:
> 
> 
> Raphael Ritz wrote:
>> David Glick wrote:
>>> You can either use IBrowserLayerAwareExtender and a browser layer that's 
>>> registered by your product, or else register the extender as a local 
>>> adapter (e.g. using componentregistry.xml)
>>> David
>>>
>> Alternatively, you might be interested in looking at
>>
>>    http://pypi.python.org/pypi/plone.behavior
>>
> 
> I don't think plone.behavior would help here ... at least not immediately.

Which is why I said "you might be interested in looking at"
and knowing it's Andreas who I responded to ;-)

But while we are at this: I haven't used plone.behavior yet
but it seems to me like it's laying the ground for a number
of TTW configurable things that depend on interfaces being
assigned (or not) to make e.g., certain adapters available
(or not).

It is my current understanding that if Andreas were to implement
his schema extender as a behavior he could then control the
availability of this extender using a custom  IBehaviorAssignable
adapter in which he could implement any logic he wants to decide
about availability (including being in a certain site, or the
current site being configured somehow, having a certain product
installed etc...)

Please correct me if I'm wrong,

	Raphael


> 
> Martin
> 





More information about the Product-Developers mailing list