On 05/18/2011 06:21 PM, Vincent Massol wrote: > Hi devs, > > I'd like to fix http://jira.xwiki.org/jira/browse/XWIKI-6627 (for 3.1M2 or > 3.1RC1). > > To Fix it I'm proposing to change the behavior of > DAB.getDocument(DocumentRefenrece) to always return the translated document > object (vs the default document). > > We can add a getDefaultDocument(DocumentReference) if we want to return the > default document. > > I'd prefer to do this over adding a getTranslatedDocument for 2 reasons: > 1) not have to track down all places calling getDocument and replacing their > calls with getTranslatedDocuments (since there are very few use cases where > we really want the default doc vs the translated doc) > 2) follow the direction done by Thomas in > http://jira.xwiki.org/jira/browse/XWIKI-2934 which changed > DAB.getDocumentContent behavior to return the translated content. > > WDYT?
+0. Should we introduce a method that also accepts a Locale parameter? -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

