Commit Graph

96 Commits

Author SHA1 Message Date
Christophe Simonis ec36a494fe [FIX] do not expose posix only config options on windows
bzr revid: chs@openerp.com-20140306115214-8wrfivy4runpzoar
2014-03-06 12:52:14 +01:00
Antony Lesuisse 8fec899f9b [FIX] move appsdirs to tools
bzr revid: al@openerp.com-20140227163259-asal833qjv3gylit
2014-02-27 17:32:59 +01:00
Antony Lesuisse 38d1ca1ff2 [MERGE] trunk
bzr revid: al@openerp.com-20140227161819-p9chmskfifo0rygs
2014-02-27 17:18:19 +01:00
openerp-sle 3ef93918a8 [FIX] Increased allowed virtual memory per worker
bzr revid: openerp-sle@openerp-sle.home-20140212225240-nhu8dj68z84rm9u5
2014-02-12 23:52:40 +01:00
Antony Lesuisse 002ac937c1 add python --test-file support
bzr revid: al@openerp.com-20140209014636-2fbl15q8wrubmiup
2014-02-09 02:46:36 +01:00
Christophe Simonis c48f11041b [IMP] chmod data-dir
bzr revid: chs@openerp.com-20140116164406-p2gtb2uziwhchp68
2014-01-16 17:44:06 +01:00
Christophe Simonis db10e1d3a5 [FIX] http: store sessions in data-dir
bzr revid: chs@openerp.com-20140116164142-ikcw82lyfopoj46k
2014-01-16 17:41:42 +01:00
Christophe Simonis a73c02075a [FIX] ensure data-dir (and subdirs) exists
bzr revid: chs@openerp.com-20140116100243-ltp6yunvm1bnvn5q
2014-01-16 11:02:43 +01:00
Christophe Simonis 5d87753ef2 [ADD] new cli argument: -D/--data-dir
bzr revid: chs@openerp.com-20140115171323-eiy2h61qi098n0q3
2014-01-15 18:13:23 +01:00
Antony Lesuisse 40ba925691 [IMP] --auto-reload to enable code and xml auto reload, service cleanup.
Added an autoreload mecanism based on pyinotify that restart the server as soon
as a .py or .xml file change is detected, for xml updates the relevant -u are
automatically added to exec(2).

pyinotify is linux specific and should be replaced by a cross plaform library
such as watchdog. Unfortunatly watchdog is not yet packaged in debian. We could
support both libraries, patches are welcome.

Refactored the code in cli/* and service/*. The 3 running modes of openerp
(threaded, prefork, gevent) are now in openerp/service/server.py, one class per
mode, and they share the same interface.

Added a signal handler to increase or decrase the number of HTTP workers in
prefork mode (SIGTTIN, SIGTTOU).

bzr revid: al@openerp.com-20131005225740-hrxwy50ldi5yql0e
2013-10-06 00:57:40 +02:00
Antony Lesuisse 0a75a6b5ff simplier autoreload working
bzr revid: al@openerp.com-20131005212240-5lp8tgwukeg5wwdq
2013-10-05 23:22:40 +02:00
Antony Lesuisse 2a6d0299d9 revert to use a separate executable for gevent, add --dev option
bzr revid: al@openerp.com-20130909200825-sm5c3invmg7tt70j
2013-09-09 22:08:25 +02:00
Vo Minh Thu c3aae0abdb [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130328095006-o01omst9g0uhm0iz
2013-03-28 10:50:06 +01:00
Vo Minh Thu 34e8deeb4e [REM] common: removed login_message() which is not used.
bzr revid: vmt@openerp.com-20130328093018-c4s19buicwwol8y2
2013-03-28 10:30:18 +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
Antony Lesuisse acb17855f9 [IMP] logrotation is now disabled by default
bzr revid: al@openerp.com-20130228011811-1700jfnavo37dyqr
2013-02-28 02:18:11 +01:00
Skrillex de03f4d670 [REM] netrpc: KILL EVERYBODY
bzr revid: vmt@openerp.com-20130221121825-dvpacxajwztslukj
2013-02-21 13:18:25 +01:00
niv-openerp b5209cbf56 merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130215122500-p69xawqym93jauks
2013-02-15 13:25:00 +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 69fefde965 [IMP] The open openerp namespace is removed.
bzr revid: vmt@openerp.com-20130209060246-o7qs51c2uc0kecjo
2013-02-09 07:02:46 +01:00
niv-openerp 7010e8543e Merge Thu branch
bzr revid: nicolas.vanhoren@openerp.com-20130129150525-bcbh9b5jp8l2yath
2013-01-29 16:05:25 +01:00
niv-openerp 613775dd41 merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130128105556-cxifj7m5zpay4bmv
2013-01-28 11:55:56 +01:00
Vo Minh Thu ed0a292f5d [IMP] gevent: no longer a command-line flag (always used in multi-process, never otherwise)
The internal flag is in openerp.__init__ (as the multi_process flag).

bzr revid: vmt@openerp.com-20130118152511-57u4gxyolz0hd4y8
2013-01-18 16:25:11 +01:00
Vo Minh Thu a4120a879a [IMP] long polling: disable the watchdog for the WorkerLongPolling, added command-line option for its port.
bzr revid: vmt@openerp.com-20130117103057-12ez48kj48pntb1g
2013-01-17 11:30:57 +01:00
Olivier Dony 4eac510461 [FIX] ir.mail_server: properly handle the --smtp-ssl command-line option + map it to STARTTLS as a safer default
bzr revid: odo@openerp.com-20130115124058-81kgv0cy9jp96ln4
2013-01-15 13:40:58 +01:00
niv-openerp d211ac7798 merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130114102410-m60y4kh8o69u00hc
2013-01-14 11:24:10 +01:00
niv-openerp 4db73a4c7c merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130108090624-cubi563m34f1j6ab
2013-01-08 10:06:24 +01:00
Antony Lesuisse 2e01a395db [FIX] workers memory limits better help
bzr revid: al@openerp.com-20121229132216-zfk4ipw4p6mbgxnj
2012-12-29 14:22:16 +01:00
dle@openerp.com 355dac7356 [FIX]Kanban view js not loaded when db created through command line
bzr revid: dle@openerp.com-20121220101511-679v8e6ijsbaxj0y
2012-12-20 11:15:11 +01:00
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Antony Lesuisse 96f632224f [IMP] workers document defaults
bzr revid: al@openerp.com-20121209225349-k0f9jpg7n0nxc70t
2012-12-09 23:53:49 +01:00
Antony Lesuisse c41d63f300 netrpc flip default, backward compatible for a few days
bzr revid: al@openerp.com-20121209185651-7i4vlvul5b3jgnmy
2012-12-09 19:56:51 +01:00
Antony Lesuisse 0cfa89dff7 netrpc flip default
bzr revid: al@openerp.com-20121209185442-1kgtc0hvds4fpng0
2012-12-09 19:54:42 +01:00
Antony Lesuisse 42f292af93 cron cleanup, back to the Kernighan KISS roots 1min poll time, rely only on database, multiprocess/multiserver ready.
Nota: If we replace sequence signaling for cache invalidation with pg
listen/notify in the future, we will use the same mechanism for more accurate
cron timing.

bzr revid: al@openerp.com-20121209170447-zs0k3jazokylwvar
2012-12-09 18:04:47 +01:00
niv-openerp 36cc0540cb merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20121203135026-d3wri3z1uxwk60z4
bzr revid: nicolas.vanhoren@openerp.com-20121206101800-5ypnpd02iolh2fsd
2012-12-06 11:18:00 +01:00
Olivier Dony 7f5ad72429 [MERGE] Forward-port 6.1 bugfixes up to rev. 4307
rev.4307 = rev-id launchpad_translations_on_behalf_of_openerp-20121125065030-g5if5pybr61la4yj

bzr revid: odo@openerp.com-20121126160320-t2suuik6lhk6wl0x
bzr revid: odo@openerp.com-20121126161836-mv8yymzgbnmif4ve
bzr revid: odo@openerp.com-20121126162023-ejvsapwouyudw6c6
bzr revid: odo@openerp.com-20121126181527-d4yx15372bis77qj
2012-11-26 19:15:27 +01:00
niv-openerp c3cb554ab0 Improved config
bzr revid: nicolas.vanhoren@openerp.com-20121122150601-7wha9rao9ix2myvv
2012-11-22 16:06:01 +01:00
niv-openerp 7137bb0b53 [IMP] Added configuration option for gevent
bzr revid: nicolas.vanhoren@openerp.com-20121122145309-bim6m10p0q7rf6wj
2012-11-22 15:53:09 +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
Antony Lesuisse d77fe9c185 [FIX] restore poxy-mode command line option to prevent ip address impersonation
bzr revid: al@openerp.com-20120924105622-nb3iwe1vnuffqrbm
2012-09-24 12:56:22 +02:00
Antony Lesuisse 4679680dba manual merge of multicorn
bzr revid: al@openerp.com-20120922105107-q02ogtsfudphzkl6
2012-09-22 12:51:07 +02:00
Stephane Wirtel 4da5c9ef63 [MERGE] use the postgres db instead of template1 for the creation of a database
bzr revid: stw@openerp.com-20120912111910-b092erlzv2g7wh1u
2012-09-12 13:19:10 +02:00
Xavier ALT 336f72c344 [FIX] config: only type check known options
bzr revid: xal@openerp.com-20120530064237-u97y6h5waetl9nf4
2012-05-30 08:42:37 +02:00
Xavier ALT 0c32cb4936 [FIX] config: when assigning new value, ensure that value are correctly type checked
This make configmanager stronger about config params values (if we need to enforce
  them as int, float, ...). Helping gunicorn user's to not set wrong value, like:

     conf['cpu_time_limit'] = '180'

  In that case, type checker will gracefully convert it to interger.

bzr revid: xal@openerp.com-20120523125354-jr6lgpecjyqrmaz3
2012-05-23 14:53:54 +02:00
Olivier Dony 208b5aef5d [FIX] config: log-handler option was not working if defined in config file
It is now possible to define the log-handler in the config
file. It should be done in the same manner as the addons_path,
i.e. a comma-separated list of strings.
There is no need to pass the default :INFO handler, as this
will be automatically added by the system.
As an example, you can have:
log_handler = werkzeug:CRITICAL,openerp.netsvc.rpc.response:DEBUG

bzr revid: odo@openerp.com-20120423122407-aexnby6166wjv34h
2012-04-23 14:24:07 +02:00
Vo Minh Thu 0cb86fc58d [IMP] tests: removed the severity concept from `assert` tags.
bzr revid: vmt@openerp.com-20120302112834-n1zyqf1g4v61ivje
2012-03-02 12:28:34 +01:00
Vo Minh Thu 6323111950 [IMP] tests:
- moved a few YAML tests to unittest2 for demonstration purpose
- changed --test-disable to --test-enable (and swapped its meaning)

bzr revid: vmt@openerp.com-20120301134608-szuktuj8imdhmn0r
2012-03-01 14:46:08 +01:00
Vo Minh Thu 1c6af53988 [MERGE]merged trunk.
bzr revid: vmt@openerp.com-20120210144114-rm4mt9x3uyekinto
2012-02-10 15:41:14 +01:00
Antony Lesuisse a1e5c645d9 postgres use postgres instead of template1 and template1 instead of template0
bzr revid: al@openerp.com-20120209213317-3tt4o0sj87764ocn
2012-02-09 22:33:17 +01:00
Vo Minh Thu 09dc03a30f [IMP] logging: re-added the --log-level option for backward compatibility.
bzr revid: vmt@openerp.com-20120206230215-pst29d6x0ymn2fwx
2012-02-07 00:02:15 +01:00