• Remember Mailing List

warning: slight change in membrane properties behaviour

from Rob Miller on Aug 23, 2006 06:45 PM
hey all,

i've just committed some changes to membrane that downstream users  
should know about.  the membrane property manager plug-in used to  
return a simple dictionary for the managed properties.  in order to  
play well with Plone, however, we need to be returning  
MutablePropertySheet objects (from PlonePAS.sheet).  i've changed the  
membrane plug-in (and the corresponding adapters which implement the  
same interface) to do so, and have added a few tests.

if, perchance, anyone has any code out there that retrieves the  
property sheets from a membrane property manager, then this change  
may cause breakage, b/c where you used to get a dictionary supporting  
a has_key method and index lookups, you now have a property sheet  
supporting hasProperty method and a getProperty method.  the new  
behaviour is far more correct.  apologies if this causes anyone to  
have to visit their code, but i wanted to get this changed before the  
incorrect behaviour became more widespread.

-r

Return to date view: threaded or flat