Christophe Simonis
ab386c0f5f
[MERGE] forward port of branch saas-2 up to revid 4984 chs@openerp.com-20131125151017-lmj53bxg1pfrr4a7
...
bzr revid: chs@openerp.com-20131125154140-cpbk4tcdml2a3b9n
2013-11-25 16:41:40 +01:00
Christophe Simonis
33ce0e73db
[FIX] When running with --stop-after-init, return code must be not null if any failure happen.
...
bzr revid: chs@openerp.com-20131118132235-84u5hfccm784ge5l
2013-11-18 14:22:35 +01:00
Christophe Simonis
86fea1e176
[IMP] always dumps threads, even in evented mode
...
bzr revid: chs@openerp.com-20131108175224-tztp2w83vfw9yetz
2013-11-08 18:52:24 +01:00
Christophe Simonis
44eab2cfed
[IMP] dumpstack dumps greenlets when running in evented mode
...
bzr revid: chs@openerp.com-20131107163419-90pd7uai8fm70sv9
2013-11-07 17:34:19 +01:00
Antony Lesuisse
d2eb959710
[FIX] ensure the use the registry signaling for registries loaded with -d
...
bzr revid: al@openerp.com-20131013021322-5ej7ovpcrf7ilnn5
2013-10-13 04:13:22 +02:00
Antony Lesuisse
e6b18fc7aa
rename server
...
bzr revid: al@openerp.com-20131005221829-a18vx5ag6ef4ufee
2013-10-06 00:18:29 +02:00
Antony Lesuisse
12580e690a
[IMP] openerp threaded, gevent, prefork service cleanup
...
- unify signal handling
- unify start and stop
no new feature yet, it paves the way for
- developement mode auto reload
- graceful restart on HUP
- multiprocessing and gevent on windows
bzr revid: al@openerp.com-20130908173535-xomt5w7xmqtwkmyy
2013-09-08 19:35:35 +02:00
Christophe Simonis
3b36a3ea12
[FIX] watch parent when run in evented mode
...
bzr revid: chs@openerp.com-20130610160711-xvnmonm59al7e89l
2013-06-10 18:07:11 +02:00
niv-openerp
5d5cca0041
First version, does not close correctly
...
bzr revid: nicolas.vanhoren@openerp.com-20130606123733-j6d2lpcgrvxfa7yr
2013-06-06 14:37:33 +02: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
Christophe Simonis
2c4e370b76
[FIX] When using "--stop-after-init", set the return code correctly. A non zero return code reflect the number of databases that fail to load/update
...
bzr revid: chs@openerp.com-20130506103054-kb91drgkbj3z5799
2013-05-06 12:30:54 +02:00
Vo Minh Thu
307ca374d6
[MERGE] forward merge 7.0 until revision 4919.
...
bzr revid: vmt@openerp.com-20130404130704-24vsmczw34cssytd
2013-04-04 15:07:04 +02:00
Vo Minh Thu
684bd35442
[REF] registry: begin to remove openerp.pooler:
...
- call openerp.modules.registry.RegistryManager instead
- expose openerp.get_pool()
bzr revid: vmt@openerp.com-20130327093125-iqsyvvjm0ej7do14
2013-03-27 10:31:25 +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
8a27967525
[IMP] oe web: handle SIGINT and somewhat SIGTERM for the gevent case.
...
bzr revid: vmt@openerp.com-20130121153540-wnlnz7u8ypwg165i
2013-01-21 16:35:40 +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
niv-openerp
4db73a4c7c
merge trunk
...
bzr revid: nicolas.vanhoren@openerp.com-20130108090624-cubi563m34f1j6ab
2013-01-08 10:06:24 +01:00
Olivier Dony
4fd1bc7b3c
[IMP] cron: remove useless pooljobs and schedule_cron_jobs methods
...
The pooljobs and scheduled_cron_jobs stuff was only used to
delay the processing of cron jobs until after the registry
was fully loaded. However this is already the case because
RegistryManager.new() only sets the flag at the end of the
init step.
The flag was named `registry.cron` but simply meant that the
registry was fully loaded and ready, so it is simpler to
rename it to `registry.ready`.
In multiprocess mode this flag is enterily irrelevant
so there is no need to selectively set it to True or
False. `registry.ready` is simpler.
bzr revid: odo@openerp.com-20121221133751-h4x670vblfr3d09e
2012-12-21 14:37:51 +01:00
Olivier Dony
2839f96ffa
[FIX] cli.server: cron startup was incorrectly disabled by rev 4672.3.1
...
Rev. 4672.3.1 = revid:vmt@openerp.com-20121211105954-lwgs5js7yw3tzghs
bzr revid: odo@openerp.com-20121221102855-0ljpeoanyoxyfnjc
2012-12-21 11:28:55 +01:00
Vo Minh Thu
4a77c6a0c5
[FIX] timezone: under windows os.environ["TZ"] was not affecting the server,
...
now it does (probably because we make sure to first set the environment
*then* import the time module. Works fine under Windows XP.
lp bug: https://launchpad.net/bugs/1038017 fixed
bzr revid: vmt@openerp.com-20130307121637-47fac72clykizlnj
2013-03-07 13:16:37 +01:00
Vo Minh Thu
cdfdaa455d
[FIX] babel: the babel localedata was put back to its right place in the previous commit, so the zip-related hack can disappear.
...
bzr revid: vmt@openerp.com-20130306143317-oo4n6x78v68rqn9i
2013-03-06 15:33:17 +01:00
Christophe Simonis
0c7f17c0ac
merge upstream
...
bzr revid: chs@openerp.com-20121217172614-3z1pstu5th26wuuc
2012-12-17 18:26:14 +01:00
Antony Lesuisse
14ad37779c
cleanups
...
bzr revid: al@openerp.com-20121216015214-kfo6zlarh4gdccrx
2012-12-16 02:52:14 +01:00
Vo Minh Thu
f668a123d9
[IMP] Reduce considerably the loading time of a new registry.
...
Loading time was mesured on the loading of a second database (identical to the
first one), i.e. by passing -d xx,yy on the command line, using cProfile. The
databases were installed with sale, mrp, and the crm.
The cProfile code is commited as part of this patch and should be removed (or
maybe guarded by some command-line flag) (just as the commenting-out of the
cron startup).
The patch was also applied on top of the trunk-simple-table-stats-vmt branch
which provides SQL queries counters.
Results indicate that the number of SQL queries are reduced from about 2100 to
27. Loading time is reduced from 1.3s to 0.26s (i.e. improved by 5).
Changes:
All calls to ir_model_fields to fetch manual (custom) fields are done in a
single call (prior to instanciate all models).
Checks for empty module descriptions are not done unless we are in init or
update mode. (The behavior was the opposite, which was probably a mistake).
Some calls to ir_translation, passing en_US because there was no lang in the
context, are not done anymore.
The improved time is also a result of a change in the decimal_precision module
where precision_get fetches all digits/applications instead of one at a time
(and thus implements its own caching instead of relying on
openerp.tools.ormache).
bzr revid: vmt@openerp.com-20121211105954-lwgs5js7yw3tzghs
2012-12-11 11:59:54 +01:00
Christophe Simonis
236df95b22
merge upstream
...
bzr revid: chs@openerp.com-20121210132406-9ro3amw6s6pzeez4
2012-12-10 14:24:06 +01:00
Antony Lesuisse
f224ce1d8b
[IMP] cli first command testjs
...
bzr revid: al@openerp.com-20121209024618-cae0ux1vmo38ccwr
2012-12-09 03:46:18 +01:00
Christophe Simonis
69d057efc5
merge upstream
...
bzr revid: chs@openerp.com-20121201003326-j6n5r8juz16752j5
bzr revid: chs@openerp.com-20121204165557-u1oxocye3la4r6gf
bzr revid: chs@openerp.com-20121205143722-olswf8gsg8mhref3
2012-12-05 15:37:22 +01:00
niv-openerp
13d385fd6d
merge trunk
...
bzr revid: nicolas.vanhoren@openerp.com-20121130095319-19yuk44djj2h20m4
2012-11-30 10:53:19 +01:00
Vo Minh Thu
001c451608
[REV] reverted install-all commit (vmt@openerp.com-20121128142106-pdkcruhyz0sjltk8)
...
bzr revid: vmt@openerp.com-20121129140745-wn2o9ek3beuf7y3y
2012-11-29 15:07:45 +01:00
Christophe Simonis
a208447a3d
merge upstream
...
bzr revid: chs@openerp.com-20121128184100-rkr90mrx38fh9q4l
2012-11-28 19:41:00 +01:00
Christophe Simonis
10697d1c1e
merge upstream
...
bzr revid: chs@openerp.com-20121128135442-nt2dv11726odr2ji
2012-11-28 14:54:42 +01:00
Vo Minh Thu
3f56350779
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20121128135101-ko52od4hpngc9btz
2012-11-28 14:51:01 +01:00
Antony Lesuisse
780ff72e6b
openerp apps add Help
...
bzr revid: al@openerp.com-20121127010941-izoo14ms0ryf1f13
2012-11-27 02:09:41 +01:00
Antony Lesuisse
e36c474bde
openerp apps abstract Command fix
...
bzr revid: al@openerp.com-20121127010129-l0h604dla7hc7abd
2012-11-27 02:01:29 +01:00
Antony Lesuisse
13cdc34b65
openerp apps main moved to cli ready for new commands
...
bzr revid: al@openerp.com-20121127005513-vi9viu4oafbrze6y
2012-11-27 01:55:13 +01:00