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.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to