Commit Graph

356 Commits

Author SHA1 Message Date
Antony Lesuisse 96db6703dd [MERGE] db dump/restore zip-based format.
The new format uses plain text sql and includes the filestore.
The old pg_dump format is still supported for db restore.

bzr revid: al@openerp.com-20140312174233-0ulbcwn784ujuk6p
2014-03-12 18:42:33 +01:00
Stephane Wirtel 4bbcfddc13 [MERGE] from trunk
bzr revid: stw@openerp.com-20140312102948-1n3b2d1vqedzojzb
2014-03-12 11:29:48 +01:00
Antony Lesuisse c878b34c3e [FIX] --test-file regression introduced by chs
bzr revid: al@openerp.com-20140306221947-ex5nk6mu2py0zinh
2014-03-06 23:19:47 +01:00
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
Christophe Simonis 447d597815 [IMP] new backup format.
The new backup format is a zip containing the sql dump of the
database and the filestore of this database.

Old backups can still be restored

bzr revid: chs@openerp.com-20140304175656-iu3un6q43ttnhjfz
2014-03-04 18:56:56 +01:00
Olivier Dony 4641a23d14 [FIX] server.stop: avoid traceback during shutdown if HTTP service never started (e.g. because address was already in use)
bzr revid: odo@openerp.com-20140304093240-0yfoe3s0xz0u0xv9
2014-03-04 10:32:40 +01:00
Christophe Simonis ab80456fe7 [IMP] openerp/service/db.py: lint file
bzr revid: chs@openerp.com-20140303160805-ywbtw04jd3022jcv
2014-03-03 17:08:05 +01:00
Stephane Wirtel 5918ad323e [MERGE] from Trunk
bzr revid: stw@openerp.com-20140228161338-8yjlkwacuube7vir
2014-02-28 17:13:38 +01:00
Antony Lesuisse 38d1ca1ff2 [MERGE] trunk
bzr revid: al@openerp.com-20140227161819-p9chmskfifo0rygs
2014-02-27 17:18:19 +01:00
Stephane Wirtel 855836e96e [IMP] Move the netsvc.dispatch_rpc function from netsvc to openerp.http
bzr revid: stw@openerp.com-20140227125648-kunaefr22y28honx
2014-02-27 13:56:48 +01:00
Christophe Simonis e027b3b447 [FIX] damn! correct import
bzr revid: chs@openerp.com-20140221231010-nxwqfgtn6477ewvg
2014-02-22 00:10:10 +01:00
Christophe Simonis d81e9debbe [IMP] openerp/service/server.py: lint file
bzr revid: chs@openerp.com-20140221223544-q309ioxit8tzlaki
2014-02-21 23:35:44 +01:00
Christophe Simonis f511109440 [FIX] correct signal handler on nt
bzr revid: chs@openerp.com-20140221221702-5sa98qfkfh0fimct
2014-02-21 23:17:02 +01:00
Christophe Simonis 9f3417080c [FIX] correct run of test-file via command line
bzr revid: chs@openerp.com-20140221221551-y168fe003k45229m
2014-02-21 23:15:51 +01:00
Christophe Simonis 40f7df4fd8 [FIX] return code is non-zero if any preloaded database failed to load
bzr revid: chs@openerp.com-20140221220348-vw3mll25dti1n23u
2014-02-21 23:03:48 +01:00
Christophe Simonis 186bb97638 [FIX] httpd thread must be a daemon threaded
bzr revid: chs@openerp.com-20140221215709-codb7b9r9n77ln7k
2014-02-21 22:57:09 +01:00
Christophe Simonis 65db3c635e [MERGE] forward port of branch saas-2 up to revid 5014 mat@openerp.com-20140220145701-6y7s1roj88q7ys13
bzr revid: chs@openerp.com-20140220160548-0rhulha4cml6t08v
2014-02-20 17:05:48 +01:00
Denis Ledoux 67866db5b6 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 5015 dle@openerp.com-20140221104908-7ytdg6xkxaza05o4
bzr revid: dle@openerp.com-20140220132700-hhc1nsu25j1ye257
bzr revid: mat@openerp.com-20140220150028-p6l0vnwa5q18uxiu
bzr revid: dle@openerp.com-20140221105500-t7jg037uusdloigl
2014-02-21 11:55:00 +01:00
Denis Ledoux 1b3925fadf [FIX] service: wrong namespace for using tools
bzr revid: dle@openerp.com-20140220132548-fkw19c45mbnejgld
2014-02-20 14:25:48 +01:00
Martin Trigaux c83247c38b [MERGE] Forward-port of latest saas-2 bugfixes, up to rev.5012 revid:mat@openerp.com-20140219134943-60ssztc01cxdtk09
bzr revid: mat@openerp.com-20140219140617-na0q47yaloblb67i
2014-02-19 15:06:17 +01:00
Martin Trigaux e635ebe6c1 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5238 revid:launchpad_translations_on_behalf_of_openerp-20140219053940-dvi4g7ajttoj6h9k
bzr revid: mat@openerp.com-20140219134943-60ssztc01cxdtk09
2014-02-19 14:49:43 +01:00
Martin Trigaux c0308d7522 [MERGE] [FIX] databases list: allow to have entries with unicode char in the database list (opw 589765)
This does not allow to use a database with unicode to run openerp but does not fail (was getting an empty list of existing databases)

bzr revid: mat@openerp.com-20140214144444-0tjcz14rhlw94i50
2014-02-14 15:44:44 +01:00
Antony Lesuisse 1f67b2165c [IMP] phantomtest helper
bzr revid: al@openerp.com-20140209223917-vruzjvl0mtsqoo87
2014-02-09 23:39:17 +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
Antony Lesuisse 278ed718e9 new test execution engine
remove deprecated zipfile support
add preload_registry option when server is running
allow registries to be used in contruction in test mode
add a rollback test case for http tests
add a phantomjs helper

bzr revid: al@openerp.com-20140209004005-p5pwym4sqc23vw5b
2014-02-09 01:40:05 +01:00
Christophe Simonis a69f789b41 [MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7
bzr revid: dle@openerp.com-20140205105045-j95kduyjiq83e57z
bzr revid: dle@openerp.com-20140114173613-ruxye1m7fxtcjfim
bzr revid: dle@openerp.com-20140116161158-u95vcs3os4tk2zob
bzr revid: dle@openerp.com-20140121172737-gzawfi3ssg7xifef
bzr revid: chs@openerp.com-20140129094554-c3abc8x3qz9mpszr
bzr revid: chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140206110220-myn57cryam1y4k9v
2014-02-06 12:02:20 +01:00
Christophe Simonis 46cbf22efb [FIX] allow to use "dbname" as keyword in routes
bzr revid: chs@openerp.com-20140131163139-89lfordriamw9i1w
2014-01-31 17:31:39 +01:00
Christophe Simonis 378c908d4c [MERGE] forward port of branch saas-2 up to revid 5006 chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140129094847-4rsg0kjio0ed0rjk
bzr revid: chs@openerp.com-20140129141002-4p8fttm8ii0ogsse
2014-01-29 15:10:02 +01:00
Christophe Simonis 23778030cd [FIX] forbid dropping templates databases
bzr revid: chs@openerp.com-20140129103538-qbm054m29y5r4hu4
2014-01-29 11:35:38 +01:00
Antony Lesuisse 9248a2db18 [FIX] multiprocess mode, empty the cursor pool before forking
bzr revid: al@openerp.com-20140122221525-hify023pk5i8d0jm
2014-01-22 23:15:25 +01:00
Christophe Simonis 3275de5981 [IMP] ir.attachment: filestore is now in data-dir and by default
bzr revid: chs@openerp.com-20140116185415-ajia02bsty9joox7
2014-01-16 19:54:15 +01:00
Christophe Simonis 5269664102 [FIX] correct uses of addons_path
bzr revid: chs@openerp.com-20140115180313-pqcrfmstci2w21y8
2014-01-15 19:03:13 +01:00
Stephane Wirtel 552c76c8b2 [REF] Use the contextlib.closing function instead of a couple of try/catch for
the release of the database cursor.

bzr revid: stw@openerp.com-20140109093258-vmr1a3gaxruo0psp
2014-01-09 10:32:58 +01:00
Christophe Simonis d26e253edd [IMP] dumpstack dumps greenlets when running in evented mode.
(forward port lost during previous commit)

bzr revid: chs@openerp.com-20131125155956-x92vq9w4r9ov4vcc
2013-11-25 16:59:56 +01:00
Antony Lesuisse ff9e439733 [FIX] fcntl not needed on windows
bzr revid: al@openerp.com-20131015013700-eo0y09ft0p3w0fwe
2013-10-15 03:37:00 +02: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 a3fffe3b15 [REM] chorus on multiprocessing cron, it doesnt really helps
bzr revid: al@openerp.com-20131010231628-b81uhmhg14aj85tq
2013-10-11 01:16:28 +02:00
Antony Lesuisse 780ae08294 [IMP] add an easier to use XML-RPC faultCode compliant protocol
remove the /openerp/* routes, they were never used because the protocol was too 
different from the historical /xmlrpc/ routes. Instead we introduce a
/xmlrpc/2/ route identical to /xmlrpc/ with the only difference that it returns
int faultCodes making it compliant with the XML-RPC specification.

bzr revid: al@openerp.com-20131006102131-707kxc9zyd1mvlps
2013-10-06 12:21:31 +02:00
Antony Lesuisse 156094df3d [FIX] preliminary code for socket activation, to avoid connection refused during restart
bzr revid: al@openerp.com-20131005235639-vifvbhu4o17lf780
2013-10-06 01:56:39 +02:00
Antony Lesuisse e6b18fc7aa rename server
bzr revid: al@openerp.com-20131005221829-a18vx5ag6ef4ufee
2013-10-06 00:18:29 +02:00
Antony Lesuisse c52df72706 fix signal name
bzr revid: al@openerp.com-20131005215821-r60pgkgsrp1lo2ug
2013-10-05 23:58:21 +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 65c0538a83 autoreload, first working version for both python and data, still wip
bzr revid: al@openerp.com-20130909230553-jn26ue5qenv0sd3p
2013-09-10 01:05:53 +02:00
Antony Lesuisse 3bc9a499d4 add signals to increase/decrease number of workers
bzr revid: al@openerp.com-20130909201706-sllijtol7p6mi5nr
2013-09-09 22:17:06 +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
Stephane Wirtel 093dec2ab0 [FIX] Add the platform lib
[IMP] Log when the Long Polling Service is running

bzr revid: stw@openerp.com-20130909131024-23an5cvt1qaa90su
2013-09-09 15:10:24 +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
Martin Trigaux 122f0aa9b3 [FIX] workerst: revert commit 4930, remove useless loop and if condition always validated
bzr revid: mat@openerp.com-20130806094222-w61oolrjo66ulg3n
2013-08-06 11:42:22 +02:00
Martin Trigaux f47ac59b38 [IMP] workers: remove unused code, _acquire_job does not return any value
lp bug: https://launchpad.net/bugs/1193399 fixed

bzr revid: mat@openerp.com-20130806091032-5w6km2pmbl20zicl
2013-08-06 11:10:32 +02:00
Christophe Simonis 634fef80ef [IMP] WorkerCron: make the cron workers not all starting at the first database. Better repartition of work
[IMP] WorkerCron: renice process

Backport of commits 4891 chs@openerp.com-20130701120345-4687avu7re5pw6sf and 4892 chs@openerp.com-20130701125548-sgcaf71avwpleml1
of saas-1 branch

bzr revid: chs@openerp.com-20130724083454-fvmcm8be1ztezleg
2013-07-24 10:34:54 +02:00
Christophe Simonis 5a58a48ef5 [MERGE] forward port of branch saas-1 up to revid 4893 chs@openerp.com-20130701153735-xnbb8zauabf1k63u
bzr revid: chs@openerp.com-20130702144745-763n9cdphkppshxl
2013-07-02 16:47:45 +02:00
Christophe Simonis 955eaca4fa [FIX] multicorn: terminate long-polling process via SIGKILL
bzr revid: chs@openerp.com-20130701153735-xnbb8zauabf1k63u
2013-07-01 17:37:35 +02:00
Christophe Simonis ac8dc26c65 [IMP] WorkerCron: renice process
bzr revid: chs@openerp.com-20130701125548-sgcaf71avwpleml1
2013-07-01 14:55:48 +02:00
Christophe Simonis ad8fcbffa2 [IMP] WorkerCron: make the cron workers not all starting at the first database. Better repartition of work
bzr revid: chs@openerp.com-20130701120345-4687avu7re5pw6sf
2013-07-01 14:03:45 +02:00
Christophe Simonis a61e7cb0c8 [MERGE] forward port of branch saas-1 up to revid 4887 chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
bzr revid: chs@openerp.com-20130613172414-dln3g4j0ykcwaa02
bzr revid: chs@openerp.com-20130613173900-xl7rh321nnw2b04b
2013-06-13 19:39:00 +02:00
Christophe Simonis 180e6e41d8 [FIX] long polling process: strip arguments
bzr revid: chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
2013-06-12 17:39:34 +02:00
Christophe Simonis 6f170ec732 [MERGE] forward port of branch 7.0 up to revid 5006 chs@openerp.com-20130612151912-m19okjsdkjo12qnt
bzr revid: chs@openerp.com-20130612152826-j9sj42ten9mic8s0
2013-06-12 17:28:26 +02:00
Christophe Simonis e383386a79 [FIX] correct stripping of arguments when _reexec() OpenERP
bzr revid: chs@openerp.com-20130612151912-m19okjsdkjo12qnt
2013-06-12 17:19:12 +02:00
niv-openerp d64a8f9f55 changed name of long polling executable
bzr revid: nicolas.vanhoren@openerp.com-20130610164929-1m4r0dls2oz17aqc
2013-06-10 18:49:29 +02:00
niv-openerp a94bbf8e5e [FIX] Merge fix in saas1 for the problem that made the server crash when install a db
bzr revid: nicolas.vanhoren@openerp.com-20130610144915-0nj8vpk7n84ocj3f
bzr revid: nicolas.vanhoren@openerp.com-20130610150657-3xddn91gm0iq0ubp
bzr revid: nicolas.vanhoren@openerp.com-20130610154514-oee6s4f9g17bx63z
2013-06-10 17:45:14 +02:00
niv-openerp 9154863575 fixed long polling process that can not close itself
bzr revid: nicolas.vanhoren@openerp.com-20130606124259-2xfp7gsp660spjhl
2013-06-06 14:42:59 +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
Vo Minh Thu dd7859e383 [MERGE] openerp.servie.model: removed duplicated code.
bzr revid: vmt@openerp.com-20130605111204-pmjt3olbl30xa4nt
2013-06-05 13:12:04 +02:00
Sejal Bhut (OpenERP Trainee) dcf8b5e830 [FIX] Database Backup Problem
lp bug: https://launchpad.net/bugs/1100721 fixed

bzr revid: sejalpatel125@gmail.com-20130603092630-3rh4bewi3kihmub7
2013-06-03 14:56:30 +05:30
niv-openerp c30d90e97a [FIX] desperate attempt to solve long polling process freezing
bzr revid: nicolas.vanhoren@openerp.com-20130531095439-leao1mq9p0kvjqaw
2013-05-31 11:54:39 +02:00
Christophe Simonis 185f7552fd [FIX] multicorn: WorkerLongPolling watch for parent change
[IMP] multicorn: WorkerLongPolling log into logger
[IMP] multicorn: Workers closes unwanted sockets

bzr revid: chs@openerp.com-20130530154537-89qrbgi5q1n6fgmh
2013-05-30 17:45:37 +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 7f3b9ef9e3 [IMP] use exact writing for fsf address
bzr revid: mat@openerp.com-20130514142926-twja0tqy64s9eo09
2013-05-14 16:29:26 +02:00
Martin Trigaux 810edc8cf9 [IMP] use new fsf address
bzr revid: mat@openerp.com-20130514141619-xd30aqer3f3gii31
2013-05-14 16:16:19 +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 d6477c23e3 [FIX] long-polling: use start()/stop() instead of serve_forever().
This is done so detecting a possible PPID change works.
(So that the worker dies when its parent dies.)

bzr revid: vmt@openerp.com-20130502125907-2t96a26eo6c09x2f
2013-05-02 14:59:07 +02:00
Quentin (OpenERP) c474a6c9fa [MERGE] forward port merge of server v7 up to revision 4957
bzr revid: qdp-launchpad@openerp.com-20130424100657-qqtqp8jz0un1js49
2013-04-24 12:06:57 +02:00
Antony Lesuisse 6a2e96bf90 [FIX] workers, listen backlog based on the number of workers
bzr revid: al@openerp.com-20130423222245-i3gw87v7rktsb23y
2013-04-24 00:22:45 +02:00
Christophe Simonis 261dea6fec [MERGE] forward port of server v7 up to revision 4954
bzr revid: qdp-launchpad@openerp.com-20130422093655-txqmbalod6qmw1s6
bzr revid: chs@openerp.com-20130423183723-9kiexdyzdew8iuzm
2013-04-23 20:37:23 +02:00
Raphael Collet 05851d21ba [MERGE] from trunk
bzr revid: rco@openerp.com-20130411073017-x6e4h8xbvmy3ofdw
2013-04-11 09:30:17 +02:00
Thibault Delavallée 58ccbfc184 [FIX] service/model.py: fixed missing import of psycopg error OperationalError added when merging 7.0 into trunk.
bzr revid: tde@openerp.com-20130405133203-ijustxnwkabw3no6
2013-04-05 15:32:03 +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
al@openerp.com c532e3da9e [FIX] workers limit cron memory usage
bzr revid: al@openerp.com-20130405001112-gknqvx0iyjmu1ona
2013-04-05 02:11:12 +02:00
Vo Minh Thu 9c4f0bf9d8 [FIX] service.db: forgot to remove the indicing when pooler.get_pool() was replaced.
lp bug: https://launchpad.net/bugs/1162681 fixed

bzr revid: vmt@openerp.com-20130402091852-9hsatm95ej53lllg
2013-04-02 11:18:52 +02:00
Raphael Collet 09be864f1d [IMP] replace all tests like 'registry.get(X)' by 'X in registry' where X is non static
bzr revid: rco@openerp.com-20130329140723-dnrl02saky570xg0
2013-03-29 15:07:23 +01:00
Vo Minh Thu 79bd8db0fd [FIX] WorkerCron: give a chance to process_limit() between each database.
bzr revid: vmt@openerp.com-20130328115905-ddib9g4bbu0kx2wn
2013-03-28 12:59:05 +01: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 aa18274ef0 [REF] common: removed unused import.
bzr revid: vmt@openerp.com-20130328093438-wkd1k084oqggxnmm
2013-03-28 10:34:38 +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 244bca8f6c [REF] common: the previously removed functions were still listed in dispatch().
bzr revid: vmt@openerp.com-20130328092541-zahlbgpidbm2ugfv
2013-03-28 10:25:41 +01:00
Vo Minh Thu d6ea526e36 [MERGE] openerp.pooler is deprecated.
bzr revid: vmt@openerp.com-20130327164045-ziw4lj50owdvmfbw
2013-03-27 17:40:45 +01:00
Xavier Morel 39ddcfd94d [REM] broken functions (missing import, removed packages)
Also remove extract_zip_file, only used by broken functions

bzr revid: xmo@openerp.com-20130327162307-zcbbpjojo8lrwnj0
2013-03-27 17:23:07 +01:00
Vo Minh Thu 1e7e2ca753 [REF] no longer use openerp.pooler.
Either use openerp.modules.registry.RegistryManager when the full
new() signature is needed, or use openerp.registry().

Replaced also some pool.get() with pool[] because KeyErrors
are better than AttributeErrors on None.

bzr revid: vmt@openerp.com-20130327111014-2i0hlvpy5y5ku7hm
2013-03-27 12:10:14 +01:00
Chris Biersbach 6eefd15744 [FIX] Forwardport of issue when starting crons from 6.1 revision 4334
bzr revid: cbi@openerp.com-20130322140331-2trqiyuck816wj4f
2013-03-22 15:03:31 +01:00
Vo Minh Thu 1683fc7abd [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322135152-1hdlptwj1qqqfz4z
2013-03-22 14:51:52 +01:00
Mohammed Shekha b8690e58e9 [FIX]Fixed the issue of database list retuns blank when there is name with unicode character in postgres, due to this web-client redirects user to create database screen as there is no database comes in response of db_list.
bzr revid: msh@openerp.com-20130319070248-57cp7drh0ry0vjz7
2013-03-19 12:32:48 +05:30
Olivier Dony ffd258e3f0 [FIX] web_services: incorrect error message in logfile after failed DB dump, courtesy of Brendan Clune (Logic Supply)
lp bug: https://launchpad.net/bugs/1124440 fixed

bzr revid: odo@openerp.com-20130318144156-q7yw9qy83tngdg6x
2013-03-18 15:41:56 +01:00
Olivier Dony 8d6e91219f [FIX] web_services: set PGPASSWORD in environment only when db_password is set in the config
This prevents an error when trying to set an
environment variable to `False`, and is the
second part of the regression introduced in
revision 4424. See previous partial fix
at revision 4893

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

bzr revid: odo@openerp.com-20130318141532-m2xsahh5u5pi5bth
2013-03-18 15:15:32 +01:00
Olivier Dony 8e3ba8e34e [FIX] service.db: missing imports
lp bug: https://launchpad.net/bugs/1155523 fixed

bzr revid: odo@openerp.com-20130318110257-x9591dl74vu8yf2f
2013-03-18 12:02:57 +01:00
Olivier Dony 125b2a804a [IMP] service.wsgi_server: useless import
bzr revid: odo@openerp.com-20130318110229-h4422zy2kcjys2ik
2013-03-18 12:02:29 +01:00
Olivier Dony ab76b7a67f [FIX] web_services: fix db dump/restore when authentication requires a password on non-win32 systems
The various pg_* utilities require the password
via a special environment variable or a special
`pgpass` file in the user home, even on Unix,
namely when the PostgreSQL connection is done
via TCP and not via a unix socket.

Setting the environment variable is relatively
safe if it is removed from the environment
immediately after the operation, and saves user
the trouble of managing the pgpass file themselves.

This had been fixed at revision 3992 but was
incorrectly removed for non win32 platforms
at revision 4424 (rev-id stw@openerp.com-20120912114651-8hcliparft1ep9tc)

lp bug: https://launchpad.net/bugs/790164 fixed
lp bug: https://launchpad.net/bugs/919100 fixed

bzr revid: odo@openerp.com-20130313152020-suo2pyrabae0ecg4
2013-03-13 16:20:20 +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
Xavier Morel fd3035021d [FIX] missing import in wsgi_server
bzr revid: xmo@openerp.com-20130313161815-rcupbzq08b2wst1j
2013-03-13 17:18:15 +01:00
niv-openerp ef2ff05d2d [FIX] typo that caused crash in cron only when launching server with --workers
bzr revid: nicolas.vanhoren@openerp.com-20130226161853-26a2vz9tn8nnc44z
2013-02-26 17:18:53 +01:00
Vo Minh Thu dee8cc8e50 [MERGE] Better exception handling in tools.convert:
- The exception is not logged in tools.convert. It is loggeg by the netsv layer anyway.
- The exception is re-raised instead, but with the full traceback available.
- A fix in openerp.service.db where the cr is closed twice.

bzr revid: vmt@openerp.com-20130226100243-mpns1k9odz69gpax
2013-02-26 11:02:43 +01:00