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

_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to