[Zope] preventing add list pollution - how?

Oliver Bleutgen myzope@gmx.net
Mon, 05 Aug 2002 18:34:42 +0200


Chris Withers wrote:
> Oliver Bleutgen wrote:
> 
>> Do I write my subobjects like normal zope product, just without 
>> registering them with zope as products?
>> Do I then add instance of my subobjects to a container just using 
>> _.setObject?
> 
> 
> That sounds like a good solution :-)
> 
> There are others, but they're not well documented and involve some 
> voodoo...
> 
> Hint: Look at the PluginIndexes product...

Dang, is this a quiz show? ;->

I have to ask, you mean just putting setting "visibility = None" when 
registering the product? This does it? Whoa.
So I can just put in a visibility = "olivers_cool_product" and test for 
that in my product to make it visible there? Cool.

Why didn't someone tell me about that, I had upgraded to a zope > 2.3.3 
long before alone for that feature.

thanks,
oliver