On Feb 24, 2008, at 1:26 PM, Jean-Vincent Drean wrote: >> >> This method looks like a duplicate of the code in the XWiki class. >> Why >> is that? >> > > Yes this is a duplicate, the problem here is that WatchListJob gets a > wrapped context and getVirtualWikisDatabaseNames isn't accessible from > api.XWiki.
Well in that case why not propose to put it in the API? In any case we must not have duplications so we need a solution. > IMHO the underlying problem is that jobs don't get an unwrapped > context and it'll have to be fixed, I agree. Why not fix this then? :) > I've prefered to duplicate this > method in the plugin instead of adding a new method to api.XWiki, > please tell me if I was wrong. Duplication is evil :) I don't see why we shouldn't have it in the API for users having admin rights. Under what user is the scheduler executed? In any case that user should probably have admin rights so it should be ok. WDYT? Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

