+1 for the same reason I did the change in
http://jira.xwiki.org/jira/browse/XWIKI-2934

On Wed, May 18, 2011 at 18:21, Vincent Massol <[email protected]> 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?
>
> Thanks
> -Vincent
> _______________________________________________
> 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