Nuxeo mailing list archives
[CPS-users] Re: Document translation issues
Yves Bastide
ybastide at wanadoo.fr
Tue Oct 17 18:30:38 CEST 2006
Aitzol Naberan wrote:
> I have made some changes:
>
> -Patch ProxyTool-s getBestRevision
> This method's search path includes session. When I translate a document
> is stored in session, and while session is active the only revision of a
> document is shown from there.
>
> -Change content_translate.py
> Calls Localizer to change the language before editing the document.
>
> With this changes all seems to work fine. Do you think this is a good
> way to solve the problem? May I have some other problem with the
> ProxyTool patch?
Where are your patches? :)
BTW, the sessionGet in getBestRevision is a heavy hotspot in CPS. Since
getBestRevision is called with no language on multiple occasions (e.g.,
proxy.title_or_id() -> .Title() -> getContent() -> getBestRevision()), calling
folder_view on a folder with a few thousands documents leads to multiple
ReadConflictError and a quasi-unusable server.
Regards,
yves
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.