[Product-Developers] Re: GenericSetup propertiestool.xml and integer properties

Radim Novotny novotny.radim at gmail.com
Mon Sep 22 09:52:03 UTC 2008


Raphael Ritz napsal(a):
> Maurits van Rees wrote:
>> Raphael Ritz, on 2008-09-22:
>>> For similar reasons I sometimes introduce two profiles for
>>> an add-on product: one (default) that's safe to be applied
>>> again on reinstall and one containing additional settings
>>> which should only be applied on first install. The application
>>> of the latter is then either controlled by a custom
>>> install function (the old 'Extensions.install' thing)
>>> or people are supposed to apply that manually in ZMI using
>>> 'portal_setup'.
>>
>> Note that when you have two GS profiles, you should add an
>> Extensions/install.py that chooses a profile to install by default.
>> If you don't then the QI picks one at random and you are lucky if it
>> picks the one that you consider the default.  (Of course it is not
>> really random, but for safety you should treat it as if it is.)
>>
> 
> Right.
> 
> I think QI takes the first it finds and profiles are usually
> looked up in alphabetical order but as Maurits said: "safety first".
> 
> Raphael

It seems I rather use setuphandlers.py and add new properties with their 
default values from there.

Thanks for the hints.

Radim





More information about the Product-Developers mailing list