Here is a proposition to remove the dependency to lxml and use instead ElementTree. This will drop compatibility with Python 2.4 (for which last realease date from 2008). The goals are to reduce the amount of external dependency, to be able in the futur to run Tryton with jython and improve performences (http://effbot.org/zone/celementtree.htm#benchmarks).
As you will see, I made a monkey patch of ElementPath taken from the development version (2.7). I also found starting speed improvement, I guess it is because libxml2 and libxslt are no more loaded (reduce also footprint of Tryton). Tryton still depends on lxml for validating with RELAX NG the view but it is optional. So please use this thread to talk about the usefulness of this patch and for coding uses codereview. Please review this at http://codereview.appspot.com/223053/show Affected files: M INSTALL M setup.py M trytond/ir/ui/view.py M trytond/model/modelview.py M trytond/res/user.py M trytond/server.py M trytond/tests/test_tryton.py A trytond/tools/ElementPath.py PS: if it is accepted, I will work on a same patch for relatorio. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgphY68zcG4Iy.pgp
Description: PGP signature
