Commit Graph

50 Commits

Author SHA1 Message Date
Antony Lesuisse 62750454e2 bye bye DEBUG_*
bzr revid: al@openerp.com-20120201003015-pct8p0fgixun3zvv
2012-02-01 01:30:15 +01:00
Antony Lesuisse aca0720691 logging no need to filter just set propagate to False
bzr revid: al@openerp.com-20120201001941-qu30h1q030yqc1wq
2012-02-01 01:19:41 +01:00
Antony Lesuisse 5a076878af new logging handler and commandline config, mostly work except the filter on the root logger
bzr revid: al@openerp.com-20120201001019-7fol09su31gbn69w
2012-02-01 01:10:19 +01:00
Antony Lesuisse b80c634176 [REM] incomplete logging handler config
bzr revid: al@openerp.com-20120131212027-oargpskx4k5a9cem
2012-01-31 22:20:27 +01:00
Vo Minh Thu 1f64224006 [IMP] openerp.netsvc: use the same logging format for werkzeug and gunicorn
but not for the access logs (we keep the Combined format).
With multiple processes, using a FileHandler can possibly
produce garbled lines. Using syslog is a good alternative.

bzr revid: vmt@openerp.com-20120126110135-9t04z5zrmag45g0b
2012-01-26 12:01:35 +01:00
Vo Minh Thu 48adfc8ff3 [IMP] openerp.netsvc: _logger with fully qualified module name.
bzr revid: vmt@openerp.com-20120124162245-sz7iujhxalwzroqt
2012-01-24 17:22:45 +01:00
Vo Minh Thu 6e3ad4f8c9 [IMP] logging: configure a top-level `openerp` logger instead of the root logger.
bzr revid: vmt@openerp.com-20120124104558-r3nz6pvjlcv09aht
2012-01-24 11:45:58 +01:00
Florent Xicluna 40c1de87d8 [REF] remove unused import, always import literal_eval from tools.safe_eval.
bzr revid: florent.xicluna@gmail.com-20120115214214-0rjwn80choc9g0fs
2012-01-15 22:42:14 +01:00
Antony Lesuisse 0b95d29ca9 [FIX] abort_response typo
bzr revid: al@openerp.com-20111001013254-obq2j3cqxwn20iq0
2011-10-01 03:32:54 +02:00
Vo Minh Thu f82c6503b7 [FIX] xmlrpc: handle old/new exceptions with old/new clients.
bzr revid: vmt@openerp.com-20110930085012-pqzzb3qwvdwu9hxy
2011-09-30 10:50:12 +02:00
Olivier Dony b971680a53 [MERGE] multi-process/multi-threaded ir.cron implementation
bzr revid: odo@openerp.com-20110929002157-31pgkmqc96by15ak
2011-09-29 02:21:57 +02:00
Olivier Dony e7601e68cb [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110928211326-0e51q7zlw4h2528z
2011-09-28 23:13:26 +02:00
Vo Minh Thu 08cfadaff0 [IMP] xmlrpc: somewhat streamlined the exception types/
exception handling code.
OpenERPDispatcherException which was simply wrapping an exception together with
an exc_info is removed.

bzr revid: vmt@openerp.com-20110927102246-87ibftawukc2d8lc
2011-09-27 12:22:46 +02:00
Vo Minh Thu 157580b8e8 [IMP] xmlrpc: use proper exception type to map to xmlrpc error codes.
bzr revid: vmt@openerp.com-20110926151403-fhx4ph22tua2s3st
2011-09-26 17:14:03 +02:00
Vo Minh Thu a7a826b2df [IMP] netsvc: removed unused auth param.
The auth param is an auth proxy/provider. The idea is that an auth proxy
is associated to some HTTP request handler. The handler can then use it
when necessary, depending on the accessed resource.
As of now, it is only used by the webdav module. But really, the caldav
module accesses the proxy directly on the handler.
Currently in web_services, authentication is simply done via
security.check().

bzr revid: vmt@openerp.com-20110925152318-i3jvimumm51e2lu4
2011-09-25 17:23:18 +02:00
Vo Minh Thu 0a6fe4d1f7 [IMP] wsgi: added exception handling.
bzr revid: vmt@openerp.com-20110902150226-223gkl4efb8o8jhs
2011-09-02 17:02:26 +02:00
Vo Minh Thu 9aeba4fece [REF] netsvc.OpenERPDispatcher: that class is gone, replaced by a simple function.
bzr revid: vmt@openerp.com-20110902141232-umpscnz2cot468hy
2011-09-02 16:12:32 +02:00
Vo Minh Thu 848838526e [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110823142644-3a8pjbi7geo9udx7
2011-08-23 16:26:44 +02:00
Vo Minh Thu ef542bf9a7 [REF] netsvc: removed no longer used method (the method was changed to a function in a previous commit).
bzr revid: vmt@openerp.com-20110818080709-8htdrn4ixl3gu8sf
2011-08-18 10:07:09 +02:00
Vo Minh Thu ee12a9c9c5 [REF] netsvc: comments (kind of notes to self).
bzr revid: vmt@openerp.com-20110729145609-cbzlre0rsfxld3xq
2011-07-29 16:56:09 +02:00
Naresh (OpenERP) c86be45623 [FIX]:--debug option
lp bug: https://launchpad.net/bugs/815779 fixed

bzr revid: nch@tinyerp.com-20110729112019-yu4cbcgsmnph3iaz
2011-07-29 16:50:19 +05:30
Vo Minh Thu 40bde558c5 [REF] netsvc: removed abortResponse method.
bzr revid: vmt@openerp.com-20110729094122-8c2q2c1nx0x7jdmf
2011-07-29 11:41:22 +02:00
Vo Minh Thu c4d7dde645 [REF] netsvc: object_proxy is no longer in netsvc.
bzr revid: vmt@openerp.com-20110729083824-onx5kklbgzb9pok2
2011-07-29 10:38:24 +02:00
Vo Minh Thu 64490ad5ac [REF] netsvc: removed unused kwarg.
bzr revid: vmt@openerp.com-20110728141910-r0z95l3mf1zeh8us
2011-07-28 16:19:10 +02:00
Vo Minh Thu 5f3f9e820e [REF] netsvc: Service._groups and joinGroup are unused.
bzr revid: vmt@openerp.com-20110728131034-q5wpiwqh7f860l5s
2011-07-28 15:10:34 +02:00
Vo Minh Thu e193912717 [REF] netsvc: removed exportMethod that was only used with the previously removed class LocalService.
bzr revid: vmt@openerp.com-20110728123916-cobk8vk2oktkidke
2011-07-28 14:39:16 +02:00
Vo Minh Thu df555e35c1 [REF] netsvc: LocalService() can be a function.
bzr revid: vmt@openerp.com-20110728122856-ne9299uqh21xpabs
2011-07-28 14:28:56 +02:00
Vo Minh Thu d8db9e6b1d [REF] web_services: removed unused new_dispatch method.
bzr revid: vmt@openerp.com-20110728120754-deq2a4jiyhne1ynv
2011-07-28 14:07:54 +02:00
Vo Minh Thu 2f115c21aa [IMP] cron: moved netsvc.Agent to openerp.cron.
bzr revid: vmt@openerp.com-20110714143209-bebn6xg91fcrxro9
2011-07-14 16:32:09 +02:00
Vo Minh Thu 32e830eb99 [IMP] cron: removed unnecessary multi-tasks per db in Agent, some cleaning.
bzr revid: vmt@openerp.com-20110714110809-sgsoev9i24589sn8
2011-07-14 13:08:09 +02:00
Vo Minh Thu 6f5eb6b91e [IMP] ir.cron: continued implementing multithreaded cron:
- use a lock to protect the number of threads
- the not task[0] condition in reschedule_in_advance is not really correct
- but we have to remove the Agent in favor of a real cron master thread.

bzr revid: vmt@openerp.com-20110713134933-gmfwddot50a3ib4k
2011-07-13 15:49:33 +02:00
Vo Minh Thu 46f8243877 [IMP] ir_cron: reschedule the main cron thread if a worker takes too long.
bzr revid: vmt@openerp.com-20110707135843-z38f4r8s373ctnd2
2011-07-07 15:58:43 +02:00
P. Christeas 7c8665bb69 [MERGE] docstrings improvements and preparation for api-doc structure
bzr revid: odo@openerp.com-20110701231956-93zu7xtibpo06eqm
2011-07-02 01:19:56 +02:00
P. Christeas 18c480d1cb netsvc: API doc title and docstring fixes
bzr revid: xrg@linux.gr-20110623090357-vcr58sj3sbgd1r2i
2011-06-23 12:03:57 +03:00
Olivier Dony e50fa20f19 [FIX] netsvc: corrected copyright header
Corrected license to AGPLv3, and removed obsolete copyright lines
as confirmed by Cedric Krier by email on 2011-06-29.
These copyright lines referred to a refactoring copied from Tryton
in revision rev 1439 - stephane@tinyerp.com-20081218235433-cnsc5a4iyfzqvbdx
All this code has disappeared since then, specifically after
a major rewrite by xrg, merged at revision 1900 
(mga@tinyerp.com-20091126113653-0ym60nvtjinvp82h).

bzr revid: odo@openerp.com-20110629095138-hmo91mvk1m8u4643
2011-06-29 11:51:38 +02:00
Vo Minh Thu a101398751 [MERGE] netsvc+ir_cron: display the execution time in debug_rpc.
bzr revid: vmt@openerp.com-20110628153705-6mattiub65b7ozq3
2011-06-28 17:37:05 +02:00
Vo Minh Thu 23ecb4f956 [IMP] netsvc: even uglier logging code.
bzr revid: vmt@openerp.com-20110627143128-fkau44h1smozzl8i
2011-06-27 16:31:28 +02:00
Olivier Dony 301497c543 [IMP] lint cleanup
bzr revid: odo@openerp.com-20110624133335-jf5kg6dh9kgxw2dg
2011-06-24 15:33:35 +02:00
Vo Minh Thu 93e3a1f366 [FIX] netsvc: revert introduction of cgitb
(was done at revno 3452, revision-id vmt@openerp.com-20110609073416-ml22a1vhtizl3z71)

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

bzr revid: vmt@openerp.com-20110623143651-v1x7obfnj48khsdj
2011-06-23 16:36:51 +02:00
Vo Minh Thu 78986ba9d2 [REF] netsvc+ir_cron: removed unnecessary getLogger, removed double call to f/dispatch.
bzr revid: vmt@openerp.com-20110621083011-53toyp3lsa4rxs39
2011-06-21 10:30:11 +02:00
Vo Minh Thu ca91b75f21 [IMP] netsvc+ir_cron: display the execution time in debug_rpc.
bzr revid: vmt@openerp.com-20110620152615-kyl8s7z6we2or1yw
2011-06-20 17:26:15 +02:00
Olivier Dony a9bd4f2ce1 [FIX] netsv: don't try to post_mortem exception which don't have tracebacks (for --debug)
bzr revid: odo@openerp.com-20110617165645-zno4dj303irhndhx
2011-06-17 18:56:45 +02:00
Vo Minh Thu c9167c7d7a [MERGE] OSX handling of socket shutdown.
bzr revid: vmt@openerp.com-20110616104752-ypavxntrnl8jd1td
2011-06-16 12:47:52 +02:00
Xavier Morel 012c93ae40 [IMP] OSX handling of socket shutdown in TinySocketClientThread
When the client closes its socket, on OSX it closes the server one as well, leading to an errno.ENOTCONN when trying to shut it down.

Also use the unified socket-closing function to handle tinysocket

bzr revid: xmo@openerp.com-20110616102624-vixxow6twsx7j84s
2011-06-16 12:26:24 +02:00
Vo Minh Thu 971276b599 [ADD] openerp/netsvc: use cgitb to format the exception sent to the client, code/idea by chs.
bzr revid: vmt@openerp.com-20110609073416-ml22a1vhtizl3z71
2011-06-09 09:34:16 +02:00
Vo Minh Thu 0770057935 [REF] explicit service objects instanciation.
bzr revid: vmt@openerp.com-20110507112129-hfrly9easfby9hns
2011-05-07 13:21:29 +02:00
Vo Minh Thu a659d1fa8c [REF] netsvc: explicit Agent thread creation.
bzr revid: vmt@openerp.com-20110421155836-70da1nhpb38zqbls
2011-04-21 17:58:36 +02:00
Jacques-Etienne Baudoux 56b794c644 [FIX] removed unused imports, unused depth definition, changed indent definition
bzr revid: jba@openerp.com-20110513133514-zojsknaqrybu347e
2011-05-13 15:35:14 +02:00
Jacques-Etienne Baudoux 1ab0987803 [IMP] logging of rpc calls and cron jobs
lp bug: https://launchpad.net/bugs/781190 fixed

bzr revid: jba@openerp.com-20110511160707-lsf87msknw7rngus
2011-05-11 18:07:07 +02:00
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00