Sergiu Dumitriu wrote:
> Marius Dumitru Florea wrote:
>> Hi devs,
>>
>> I propose to make a wrapper for this method:
>>
>> XWiki#getXWikiPreference(String prefname, String fallback_param, String
>> default_value, XWikiContext context)
>>
>> in api.XWiki. I'm going to allow the users to enable or disable WYSIWYG
>> plugins from within XWikiPreferences with a fallback on xwiki.cfg. I
>> need this asap because I have selenium tests for plugins that are
>> disabled by default and I want to be able to enable the plugins before
>> running the tests.
>>
>> Here's my +1.
>
> -1 for the moment. This will expose critical information from xwiki.cfg:
>
> $xwiki.getXWikiPreference("none", "xwiki.superadmin", "")
> $xwiki.getXWikiPreference("none", "xwiki.authentication.validationKey", "")
>
> We do need a generic preference access API, but it needs to be safe to use.
Thanks Sergiu for raising this. I'll use the existing getXWikiPreference
method for now, without falling back on xwiki.cfg. I'll update the
template when we have the safe API in place.
Marius
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs