ANN: plone.browserlayer - installable layers for view components that are visible after product install only

Martin Aspeli optilude at gmx.net
Tue Nov 13 21:35:59 UTC 2007


David Glick wrote:
> Martin Aspeli wrote:
>> Jon Stahl wrote:
>>> Martin Aspeli wrote:
>>>>>> Enter plone.browserlayer. This lets you register a layer using
>>>>>> GenericSetup, i.e. during product installation. A traversal hook
>>>>>> similar to the one in plone.theme ensures that it's applied when
>>>>>> you traverse into the Plone site.
>>> Martin-
>>>
>>> You have or are going to PLIP this for 3.5, right?
>> Remind me again sometime...
>>
>> Martin
>>
> Here is your reminder!  (Just had an opportunity to work on an add-on 
> product where this was exactly what was needed, and it'd be nice to get 
> it into core Plone.)

Sure, but it's pretty easy to just say

  install_requires="plone.browserlayer"

in your setup.py and you get it automagically anyway.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book





More information about the Product-Developers mailing list