+1 with modifications suggested by Vincent

On Thu, Jan 8, 2009 at 3:33 PM, Vincent Massol <[email protected]> wrote:
> +0 (I'm not a big fan of it though since it's overloading even more
> our XWiki API) since we have it in XWiki.java but provided you fix the
> param names:
>
> * prefname --> preferenceName
> * fallback_param --> fallbackPropertyName
>
> Note: that what's even better is to use the new configuration module
> which supports this use case in a much nicer way.
>
> On Jan 8, 2009, at 2:24 PM, Jerome Velociter wrote:
>
>> The signature would be :
>>
>> public String getXWikiPreference(String prefname, String
>> fallback_param,
>> String default_value);
>>
>> The underlaying method already exists in the non API XWiki.java (was
>> added for http://jira.xwiki.org/jira/browse/XWIKI-2569).
>>
>> What this method exactly do is : "Obtain a preference value for the
>> wiki, looking up first in the XWiki.XWikiPreferences document, then
>> fallbacking on a config parameter when the first lookup gives an empty
>> string, then returning the default value if the config parameter
>> returned itself an empty string."
>>
>> My +1:
>>
>> +1
>>
>> Jerome.
>>
>> PS: I've created a JIRA for it: http://jira.xwiki.org/jira/browse/XWIKI-3086
>
> Thanks
> -Vincent
> http://xwiki.com
> http://xwiki.org
> http://massol.net
>
>
>
>
>
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to