Commit Graph

111 Commits

Author SHA1 Message Date
Christophe Simonis 31f2a1bc38 [MERGE] forward port of branch 7.0 up to 1c0bc7c 2015-06-30 12:47:27 +02:00
Martin Trigaux 1c0bc7cc16 [FIX] server: backport of 3940a096 on psutil
psutil 3.0 removed get_momory_info method
create wrapper method for backward compatibility
2015-06-29 16:09:42 +02:00
Christophe Simonis a091de8d8d [FIX] core: no traceback when closing socket.
Closes 5057
2015-04-20 11:54:58 +02:00
Christophe Simonis 1c3ee251f0 [MERGE] forward port of branch 7.0 up to revid 5270 chs@openerp.com-20140403084524-9rb174osjrbmhgwc
bzr revid: chs@openerp.com-20140402083506-w4cywcf0kxxx9xmk
bzr revid: chs@openerp.com-20140312174526-a5rhh83g0fw8djuc
bzr revid: chs@openerp.com-20140318105837-53vsx5g7fm517cuc
bzr revid: dle@openerp.com-20140326092548-bu4bqinhvco8j5wj
bzr revid: chs@openerp.com-20140402092735-3a23yjl169vvt0iv
bzr revid: chs@openerp.com-20140402112825-ky8rcb3p467ikitc
bzr revid: chs@openerp.com-20140403084808-slnj7uis17kwi9js
2014-04-03 10:48:08 +02:00
Christophe Simonis 5873f0abe6 [FIX] add the logging handler only to the root logger. let the loggers propagate to allow more than one handler
bzr revid: chs@openerp.com-20140312171819-bnj3md07w4le2m7m
2014-03-12 18:18:19 +01:00
Thibault Delavallée 1d5068b63e [FORWARD] Forward port of server 7.0 until revision 4988
bzr revid: tde@openerp.com-20130528102733-bsszxp6nvy8yws3t
2013-05-28 12:27:33 +02:00
Martin Trigaux 8ecd022348 [IMP] clean permissions and shebang in files
bzr revid: mat@openerp.com-20130514103333-puuj4kmxq3bwzwec
2013-05-14 12:33:33 +02:00
Vo Minh Thu fc4d9c8633 [REF] netsvc: always use psutil: it is needed in service.workers (and listed in setup.py).
bzr revid: vmt@openerp.com-20130328110605-2kw367x1om7wzhvm
2013-03-28 12:06:05 +01:00
Vo Minh Thu 4ed7ec95b7 [MERGE] removed LocalService("workflow"), Logger class, and TEST log level.
bzr revid: vmt@openerp.com-20130327170639-uamgg7shlmtxgpxv
2013-03-27 18:06:39 +01:00
Vo Minh Thu 23d672dfc3 [MERGE] reports: make it possible to use only XML declaration, even with custom parsers.
This makes report registration more uniform, and report rendering be possible
through the ORM (and thus the model service, instead of the report service).

To register a report, always use the database, i.e. a <report> tag within an
XML file. The custom parser, if any, will be specified in the database.
Previously specify a custom parser, the report was declared in Python.

Each model exposes a print_report() method, which will take the report name (as
many report can be defined on a single model) in argument.

bzr revid: vmt@openerp.com-20130327161129-6e7jz7l3lx7z1t18
2013-03-27 17:11:29 +01:00
Vo Minh Thu 92aace0c13 [DOC] netsvc: typo in docstring.
bzr revid: vmt@openerp.com-20130327155353-5eo7r95e7gbw9c4l
2013-03-27 16:53:53 +01:00
Vo Minh Thu 4ebedfc25d [REF] netsvc: it seems the re-exports from loglevels are no longer necessary.
bzr revid: vmt@openerp.com-20130326163336-61jh2efakhg0gmoi
2013-03-26 17:33:36 +01:00
Vo Minh Thu c313b4073a [REF] logging: removed pseudo log-level TEST.
When --test-enable is used, it is expected that test output is visible,
thus using log-level INFO is natural.

On the down side you lose the nice blue hint that tests did actually
run when --log-level test was given.

bzr revid: vmt@openerp.com-20130326155844-83e2tcqokvblr0ln
2013-03-26 16:58:44 +01:00
Vo Minh Thu 464af881bf [IMP] netsvc: LocalService deprecation now guarded via openerp.conf.deprecation.
bzr revid: vmt@openerp.com-20130325131245-9o5uizn6v4r8irc3
2013-03-25 14:12:45 +01:00
Vo Minh Thu 6e43e6c4e1 [FIX] reports: now that _register_all() has been removed, LocalService() must be modified to do the lookup in the database too.
bzr revid: vmt@openerp.com-20130325123359-szxx6a0n06tha70p
2013-03-25 13:33:59 +01:00
Vo Minh Thu 1683fc7abd [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322135152-1hdlptwj1qqqfz4z
2013-03-22 14:51:52 +01:00
Xavier Morel 9476f07954 [IMP] only concatenate logging configuration subsequences once
bzr revid: xmo@openerp.com-20130319163708-s4mxsdg3f9xksr07
2013-03-19 17:37:08 +01:00
Xavier Morel 7c2b70eb46 [IMP] declaratively map openerp logging levels to logging, move default logging conf to 'constant'
bzr revid: xmo@openerp.com-20130319163606-un9ogalwfk3eykc8
2013-03-19 17:36:06 +01:00
Xavier Morel db6b6480f7 [IMP] switch workflows to standard logging (silenced by default), remove wkf_logs
bzr revid: xmo@openerp.com-20130319163133-3n1k1hgooddzxntz
2013-03-19 17:31:33 +01:00
Vo Minh Thu f1adca94c0 [MERGE] netsvc/service.model: added missing/removed unnecessary `except` clauses.
bzr revid: vmt@openerp.com-20130225155828-a364gk3ii2prxe0b
2013-02-25 16:58:28 +01:00
Vo Minh Thu 5c9b5e4ac3 [IMP] netsvc: slightly more explicit warning when using LocalService().
bzr revid: vmt@openerp.com-20130225133532-o3m2e6vvzcmdeziv
2013-02-25 14:35:32 +01:00
Vo Minh Thu a2f5e9d201 [IMP] ir_actions: removed forgotten print statements.
bzr revid: vmt@openerp.com-20130222151702-d73geh539mb99m5b
2013-02-22 16:17:02 +01:00
Vo Minh Thu efb97705f5 [IMP] LocalService(): re-allow for a few moment (so addons can be updated a bit later).
bzr revid: vmt@openerp.com-20130222145226-dqu6e612oi3yalow
2013-02-22 15:52:26 +01:00
Vo Minh Thu 729d969fd9 [IMP] report: use openerp.report.render_report() instead of LocalService().create().
bzr revid: vmt@openerp.com-20130222124801-zhhbw2bgghhf6rg6
2013-02-22 13:48:01 +01:00
Vo Minh Thu 0cb53890df [IMP] report: reports with custom parsers can be declared in XML files.
bzr revid: vmt@openerp.com-20130222093428-f1isxxqlbaj7uhuo
2013-02-22 10:34:28 +01:00
Skrillex de03f4d670 [REM] netrpc: KILL EVERYBODY
bzr revid: vmt@openerp.com-20130221121825-dvpacxajwztslukj
2013-02-21 13:18:25 +01:00
Vo Minh Thu 9412351315 [IMP] Only unhandled exceptions are logged to the console by the netsvc layer.
bzr revid: vmt@openerp.com-20130220115337-6319hshm4vfwlr1o
2013-02-20 12:53:37 +01:00
Raphael Collet e76befd6c6 [MERGE] trunk-service-thu (remove the class openerp.netsvc.ExportService)
bzr revid: rco@openerp.com-20130212154230-y54s2rbetllwnh4q
2013-02-12 16:42:30 +01:00
Vo Minh Thu c99c4091ce [REM] Deleted .apidoc lines.
They were probably used by some tools. How sad.

bzr revid: vmt@openerp.com-20130212142410-zqdjd8jw3gtvxab0
2013-02-12 15:24:10 +01:00
Vo Minh Thu 174b5cb889 [FIX+DOC] added doc for deployment under mod_wsgi + a fix for that use case.
bzr revid: vmt@openerp.com-20130205172341-pwh0z4go2xsdz7n1
2013-02-05 18:23:41 +01:00
Vo Minh Thu c8ffd1cedc [REF] service: netsvc.Service is removed. LocalService(object_proxy) is never used so it is removed.
bzr revid: vmt@openerp.com-20130201112232-2k8geufmryx6p249
2013-02-01 12:22:32 +01:00
Vo Minh Thu b303bfe5a4 [REF] service: A new openerp.service.rpc decorator is provided to replace the ExportService class.
bzr revid: vmt@openerp.com-20130131131051-5189susswxlshp29
2013-01-31 14:10:51 +01:00
Vo Minh Thu 2910d5b3f6 [REF] netsvc: close_socket is only used in wsgi_server, so move it there.
bzr revid: vmt@openerp.com-20130130174229-myvtydv03iikt6k3
2013-01-30 18:42:29 +01:00
Vo Minh Thu 8b5e317eab [REF] service: workflow is not a service
- simply use openerp.workflow instead of the funky netsvc.LocalService
- the funky netsvc.LocalService is still available though
- all the methods are now simple function (the self was unnecessary)

bzr revid: vmt@openerp.com-20130130173759-xxgyafxqzp3okz3c
2013-01-30 18:37:59 +01:00
Vo Minh Thu 2c2b6d9506 [REF] service: killed the ExportService concept.
bzr revid: vmt@openerp.com-20130130165812-0hzfnfudi8im0usb
2013-01-30 17:58:12 +01:00
Vo Minh Thu 4aacad4abf [REF] services: moved the report service to openerp.service.report.
bzr revid: vmt@openerp.com-20130130155624-u3vfqwd3komo3wfs
2013-01-30 16:56:24 +01:00
Vo Minh Thu 796bb74426 [REF] services: moved the common service to openerp.service.common.
bzr revid: vmt@openerp.com-20130130151434-1qoe9jhefge48ag3
2013-01-30 16:14:34 +01:00
Vo Minh Thu 93cdfeb86a [REF] services: moved the object service to openerp.service.model.
bzr revid: vmt@openerp.com-20130130150207-fz1ueou8prul05qa
2013-01-30 16:02:07 +01:00
Vo Minh Thu 8d23b8a63a [REF] services: moved the db service to openerp.service.db.
bzr revid: vmt@openerp.com-20130130145616-5hijxp9qib7i1uip
2013-01-30 15:56:16 +01:00
Vo Minh Thu 674056c4a5 [REF] services: somewhat clean use of openerp exceptions.
bzr revid: vmt@openerp.com-20130130134451-yft2y56hkpnoxgwa
2013-01-30 14:44:51 +01:00
Vo Minh Thu 19b0315f68 [REF] model service: removed the unneeded object_service class.
bzr revid: vmt@openerp.com-20130130113646-pviw5d6gnohk7wrb
2013-01-30 12:36:46 +01:00
Antony Lesuisse 551e6bc78d [IMP] memory usage logging
bzr revid: al@openerp.com-20121229125912-rlt4g0b6xhajqxwm
2012-12-29 13:59:12 +01:00
Olivier Dony db81edc287 [FIX] *: fix/rationalize db logging to avoid incorrect values during logging
The setting/clearing of the tracking were not done
consistently, causing log messages that appeared
to come from one database while coming from another
one or none at all.

The tracker is now set at the earliest points
of request handling where we can:
- in web client, when creating WebRequests (dbname, uid)
- at RPC dispatching in server (uid)
- at cron job acquisition in CronWorker (dbname)
- at Registry acquisition in RegistryManager (dbname)


The tracker is cleared at the very entrance of
the request in the WSGI `application`, ensuring
that no logging is produced with an obsolete
db name. (It cannot be cleared at the end of
the request handling because the werkzeug
wrapper outputs more logging afterwards)

bzr revid: odo@openerp.com-20130301120744-jfitcmze2jldecod
2013-03-01 13:07:44 +01:00
Vo Minh Thu 941f6ebc10 [FIX] logging: sys.stdout has not a fileno() method when running behind mod_wsgi.
bzr revid: vmt@openerp.com-20130206103459-2mmgagrh59c23804
2013-02-06 11:34:59 +01:00
Christophe Simonis 507c02aaa2 [REV] close_socket is back in netsvc.py
bzr revid: chs@openerp.com-20121210132133-m1z2hb72y1r1wsei
2012-12-10 14:21:33 +01:00
Antony Lesuisse 3d3eac7c50 service cleanups, more wizard removal
bzr revid: al@openerp.com-20121209184632-hp9b9fbbn9g4h2lw
2012-12-09 19:46:32 +01:00
Antony Lesuisse 5790312d65 netsvc, netrpc, wizardcleanup
bzr revid: al@openerp.com-20121209181536-au8u47557i45wizl
2012-12-09 19:15:36 +01:00
Christophe Simonis f9d8d746e2 [FIX] netsvc.py: ignore ENOTCONN on windows when calling shutdown() on sockets
bzr revid: chs@openerp.com-20121205141106-0oynmc3qdvy58owu
2012-12-05 15:11:06 +01:00
Antony Lesuisse 0dbd9b603a [IMP] remove standalone web client, fix logging
bzr revid: al@openerp.com-20121010204829-5vamumz9lhxpsgob
2012-10-10 22:48:29 +02:00
Stephane Wirtel f55028de4d [MERGE] server: remove unused imports (Thanks to Florent Xicluna)
bzr revid: stw@openerp.com-20120910144609-ad3gupkf3oseb8yy
2012-09-10 16:46:09 +02:00