Commit Graph

66 Commits

Author SHA1 Message Date
Martin Trigaux 6fdb783a37 Merge pull request #56 from yvaucher/7.0-fix-1319109
[FIX] report_webkit: avoid sharing parser instance globally and make it thread safe
2014-06-10 09:38:48 +02:00
Yannick Vaucher 4ed343455c Fix incompatibility with Windows using tempfile. 2014-05-14 13:22:42 +02:00
Yannick Vaucher e367a54640 fix indentation 2014-05-14 11:50:27 +02:00
Yannick Vaucher 72ab3e81a5 Make report_webkit thread safe by removing parser_instance attribute, as a WebkitParser instance can be shared by multiple thread and thus we don't want a thread to erase parser_instance of anorther thread. 2014-05-13 18:23:48 +02:00
Yannick Vaucher 494f1686c3 Use NamedTemporaryFile instead of file and of deprecated mktemp. That way we ensure 2 files created at the exact same time will have a unique name 2014-05-13 17:56:10 +02:00
Simon Lejeune 245e83d43b [FIX] last version of wkhtmltopdf expects all file to have a doctype, inject one if not present
bzr revid: sle@openerp.com-20140324101731-eqzqins3s8uak1yd
2014-03-24 11:17:31 +01:00
Martin Trigaux 66eb2e7f3f [MERGE] [IMP] report_webkit: avoid using same src value for two different values with fallback
bzr revid: mat@openerp.com-20130611141016-nbi737zejyc003fd
2013-06-11 16:10:16 +02:00
Martin Trigaux b7fb321f5b [MERGE] [FIX] correct path for printing webkit reports on windows server, courtesy of Olivier Laurent (Acsone)
lp bug: https://launchpad.net/bugs/1159702 fixed

bzr revid: mat@openerp.com-20130604084631-pv3echfj33qatqug
2013-06-04 10:46:31 +02:00
Martin Trigaux 8fd6cb92e7 [IMP] use exact writing for fsf address
bzr revid: mat@openerp.com-20130514142837-jt65d8xjd1eozqst
2013-05-14 16:28:37 +02:00
Martin Trigaux 3c11652fac [IMP] trmove double space in fsf address
bzr revid: mat@openerp.com-20130514141132-610k885sxtcr8vpb
2013-05-14 16:11:32 +02:00
Martin Trigaux 7b8f704f90 [FIX] fix FSF address
bzr revid: mat@openerp.com-20130514120424-xwjzdf3mufifl90d
2013-05-14 14:04:24 +02:00
Olivier LAURENT 396eec00aa [FIX] path declaration must be OS independant => use '/' as neutral path separator
lp bug: https://launchpad.net/bugs/1159702 fixed

bzr revid: olivier.laurent@acsone.eu-20130325164907-4j1ki08mxp0a6y4o
2013-03-25 17:49:07 +01:00
Olivier LAURENT 8f6e543d70 [FIX] report_webkit: Wrong Report template file path throws 'Coercing to Unicode' error : (Maintenance Case : 583490)
cf.  http://bazaar.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-583490-rgo/revision/8519

bzr revid: olivier.laurent@acsone.eu-20130325164313-ccnkn06x16ar32qz
2013-03-25 17:43:13 +01:00
Ravi Gohil (OpenERP) 0b637725be [FIX] report_webkit: If a certain translateable term happens to be the same src value as on another report (both webkit and non-webkit reports) the resulting translation on a webkit report uses the first translation found (which is highly likely to be from the other report). (Maintenance Case: 586086)
lp bug: https://launchpad.net/bugs/1098602 fixed

bzr revid: rgo@tinyerp.com-20130215084213-h38jfi447y4qpf94
2013-02-15 14:12:13 +05:30
Ravi Gohil (OpenERP) 6d69fe6639 [FIX] report_webkit: Wrong Report template file path throws 'Coercing to Unicode' error : (Maintenance Case : 583490)
bzr revid: rgo@tinyerp.com-20130101095810-7cbw337ul443q66g
2013-01-01 15:28:10 +05:30
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00
Olivier Dony f5fd0fc081 [FIX] report_webkit: fix incorrect usage of get_module_resource()
As of 7.0 get_module_resource() enforces that its first argument
should be a module name, followed by extra path components.

+ minimal lint cleanup

bzr revid: odo@openerp.com-20121207175047-ghv0ic3auq8owt0t
2012-12-07 18:50:47 +01:00
Vo Minh Thu ca89ae8f71 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206151316-u1eqx41ltjpz2lrd
2012-12-06 16:13:16 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Fabien Pinckaers 745a8ca4c2 [IMP] C2C iprovement of webkit in failed reports
bzr revid: fp@tinyerp.com-20120930125637-m1ydhij1aq7ludsv
2012-09-30 14:56:37 +02:00
d5b3cce651 [FIX] fix issue lp:1003819
* process the information that wkhtmltopdf can write on stderr
* cleanup the code handling file deletion to remove duplication
* provide information to the user about what went wrong

bzr revid: alexandre.fayolle@camptocamp.com-20120724135842-ldwsspsk51i4ne1b
2012-07-24 15:58:42 +02:00
Saurang Suthar(OpenERP) 7e978dce74 [IMP] Improved warning messages for report_webkit, share and wiki modules
bzr revid: pso@tinyerp.com-20120722134024-hu4fbdhw5ga8p1u7
2012-07-22 19:10:24 +05:30
pso (OpenERP) d5d97cb6e3 [MERGE] Improved warning messages for report_webkit, share and wiki modules
bzr revid: pso@tinyerp.com-20120722131934-j9rbotugz3ymvt4m
2012-07-22 18:49:34 +05:30
Kuldeep Joshi (OpenERP) 3c50eb017a [IMP] set logging.getLogger(__name__)
bzr revid: kjo@tinyerp.com-20120622064854-5f6fss55k7305e8q
2012-06-22 12:18:54 +05:30
Stephane Wirtel 4fe0e22bbe [FIX] report_webkit: fix the path computation for the webkithtmltopdf executable
bzr revid: stw@openerp.com-20120216105858-74d2m1qhjhqu8in7
2012-02-16 11:58:58 +01:00
Stephane Wirtel 5d4ff77bd3 [FIX] webkit: Set the right signature for the get_lib function
bzr revid: stw@openerp.com-20120215095527-a3b4ps6lyk735v1h
2012-02-15 10:55:27 +01:00
Antony Lesuisse 137612b4c5 [MERGE] report_webkit move wkhtmltopdf PATH from company to ir config parameters
bzr revid: al@openerp.com-20120215092317-ops1e4bbjepzrsah
2012-02-15 10:23:17 +01:00
Stephane Wirtel 1052e36d7c [FIX] report_webkit: Use the parent of the root_path if we use openerp on Windows
bzr revid: stw@openerp.com-20120213173514-vj6mqv9qrqs0y7k6
2012-02-13 18:35:14 +01:00
Olivier Dony 5ecb66312c [REV] Last merge by AL breaks tests
bzr revid: odo@openerp.com-20120213084242-wn07hua23owewgvm
2012-02-13 09:42:42 +01:00
Antony Lesuisse 87c00a1d3e [MERGE] webkit wkhtmltopdf path configuration
bzr revid: al@openerp.com-20120210173911-9f7oqrtghejse9o4
2012-02-10 18:39:11 +01:00
Stephane Wirtel 7500c3976c [FIX] report_webkit: Integration of WebkitHtmlToPdf
The system will read the default path from the webkit_path defined into the ir.config_parameter.
If there is no value, the system will use the PATH.

bzr revid: stw@openerp.com-20120210160929-thor1qik8i3ybnn2
2012-02-10 17:09:29 +01:00
Olivier Dony c5845be244 [FIX] report_webkit: translations lookup should ignore report name for webkit reports
Webkit/Mako translations are quite different from RML
report translations, and very similar to translations
for Python code terms, i.e. with _(). The method to
lookup the translations at rendering time should thus
be similar to what _() does for Python code terms, and
not depend on the name of the report, which is not
known when exporting the translation template, and is
therefore not available in POT meta-data.
This bears no performance penalty, as we are still
only looking inside 'report'-typed translations with
the matching 'source term'.
The only downside is that this prevents per-report
translations, but this is not supported by our
translation import/export system anyway, so it 
does not matter (msgid strings must be unique
within a PO file, and we don't support context-
sensitive PO files yet).

lp bug: https://launchpad.net/bugs/819334 fixed

bzr revid: odo@openerp.com-20120119102145-tp3w80bhjwq11q84
2012-01-19 11:21:45 +01:00
Olivier Dony 5d743ccc53 [FIX] report_webkit: avoid using report name in temp file path, breaks with non-ASCII (translated) report names
bzr revid: odo@openerp.com-20120119101149-6npyju87vz2mi5c2
2012-01-19 11:11:49 +01:00
nicolas.bessi@camptocamp.com 0694c54010 [FIX] template lookup typo
bzr revid: nicolas.bessi@camptocamp.com-20120109201353-qbbu6yzdhzoen7i6
2012-01-09 21:13:53 +01:00
nicolas.bessi@camptocamp.com 74e627b0c6 [FIX] template lookup
bzr revid: nicolas.bessi@camptocamp.com-20120109201214-211nhcysziaxyhbe
2012-01-09 21:12:14 +01:00
Numerigraphe - Lionel Sausin 779fa653c1 [IMP] Added missing vim mode lines
lp bug: https://launchpad.net/bugs/524279 fixed

bzr revid: ls@numerigraphe.fr-20111122085138-x6u2lcl6vrpyybp9
2011-11-22 09:51:38 +01:00
nicolas.bessi@camptocamp.com 339d6c856a [FIX] translation and formatting support in report_webkit
bzr revid: nicolas.bessi@camptocamp.com-20111012083350-lgzjye93lqp2nhkr
2011-10-12 10:33:50 +02:00
nicolas.bessi@camptocamp.com 97892fb72d [FIX] typo
bzr revid: nicolas.bessi@camptocamp.com-20110921081546-uwwc9nx71pr6u742
2011-09-21 10:15:46 +02:00
nicolas.bessi@camptocamp.com 73adeb660c [IMP] trailing spaces
bzr revid: nicolas.bessi@camptocamp.com-20110921081451-9bdq6wvtjvxbqv3l
2011-09-21 10:14:51 +02:00
nicolas.bessi@camptocamp.com 4d26cf1cf0 [IMP] support precise mode + get ride of notify channel + small refactoring
bzr revid: nicolas.bessi@camptocamp.com-20110921074942-9zukri77gv8eeofd
2011-09-21 09:49:42 +02:00
nicolas.bessi@camptocamp.com a0b42c1f74 [IMP] report available in header and foot in report_webkit
bzr revid: nicolas.bessi@camptocamp.com-20110909104927-xy9mcytpteiwi02w
2011-09-09 12:49:27 +02:00
Olivier Dony a76e08077a [FIX] report_webkit: fixed UTF-8 encoding in debug mode too
bzr revid: odo@openerp.com-20110430015646-j7y9fyv31j6euce3
2011-04-30 03:56:46 +02:00
nicolas.bessi@camptocamp.com 4ee8a210dc [FIX] encoding support fix for use of subprocess
bzr revid: nicolas.bessi@camptocamp.com-20110407083813-m8ymnb2lka3k6qex
2011-04-07 10:38:13 +02:00
nicolas.bessi@camptocamp.com 43e2056a03 [FIX] UTF8 support + utf8 debug mode
bzr revid: nicolas.bessi@camptocamp.com-20110405111214-2ooh7j478kiyzwdb
2011-04-05 13:12:14 +02:00
Vo Minh Thu 8d409fc136 [FIX] report_webkit: forgot to remove the import of commands.
bzr revid: vmt@openerp.com-20110405105100-rzzheoaahr44jn8k
2011-04-05 12:51:00 +02:00
Vo Minh Thu 61e505560e [FIX] report_webkit: don't display warning message about non-patched qt.
bzr revid: vmt@openerp.com-20110405074559-1ou27mu1cz41vmg8
2011-04-05 09:45:59 +02:00
Vo Minh Thu b6aae10626 [FIX] report_webkit: now works under Windows
The following points correspond to the description JP Robiez gave in the bug report comments:
No quotes around the templates filenames
Use the subprocess module instead of the commands one
Open explicitely the resulting pdf in binary mode

lp bug: https://launchpad.net/bugs/704870 fixed

bzr revid: vmt@openerp.com-20110404163307-x5h0apqxwwc7gc5o
2011-04-04 18:33:07 +02:00
Vo Minh Thu d4dabd707c [MERGE] backport of trunk at revision 4336.1.1
- original commit message: [FIX] bug 704870 webkit_locals
- original revision-id: nicolas.bessi@camptocamp.com-20110119145032-61kf5gqi281x0br7

bzr revid: vmt@openerp.com-20110404145135-cfd48dsz5401kjo4
2011-04-04 16:51:35 +02:00
nicolas.bessi@camptocamp.com ba2b179b30 [ADD] report_webkit contributor
bzr revid: nicolas.bessi@camptocamp.com-20110322140120-brw1vqx19zd49b48
2011-03-22 15:01:20 +01:00
nicolas.bessi@camptocamp.com e790b28eba [FIX] utf8 debug + minial bin version
bzr revid: nicolas.bessi@camptocamp.com-20110322134203-vsn3rsx13mg9u5vx
2011-03-22 14:42:03 +01:00