Commit Graph

371 Commits

Author SHA1 Message Date
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
Vo Minh Thu e2e9c0669e [IMP] osv: removed unnecessary `except` clauses.
bzr revid: vmt@openerp.com-20130225152057-9ehnwo2szr4pphz3
2013-02-25 16:20:57 +01:00
Vo Minh Thu ef127fddc7 [IMP] netsvc: removed unused import.
bzr revid: vmt@openerp.com-20130222145250-qd9v52tu2xt8jyb2
2013-02-22 15:52:50 +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
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
Vo Minh Thu df7c209164 [FIX] 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-20130219163047-3q766awd66wkzsn7
2013-02-19 17:30:47 +01:00
Vo Minh Thu b985c7302f [FIX] openerp namespace: the import hook was still inserting modules in sys.moduls at their shortname.
bzr revid: vmt@openerp.com-20130218164839-2qludhn3znpdftq5
2013-02-18 17:48:39 +01:00
Vo Minh Thu 3ee1923ca3 [MERGE] merged long-polling branch:
When using --workers, an evented (for longpolling) worker is started.
When passing --gevent, all the server is evented but the cron is disabled.

bzr revid: vmt@openerp.com-20130218153225-w1yft9je0b15owdv
2013-02-18 16:32:25 +01:00
Vo Minh Thu ee256b5664 [FIX] service: call stop() instead of shutdown() in the evented case.
bzr revid: vmt@openerp.com-20130218153107-m5ikcn10gckk8ik3
2013-02-18 16:31:07 +01:00
Quentin (OpenERP) 0a27066e54 [REF] code review
bzr revid: qdp-launchpad@openerp.com-20130215143503-6a6x53gdeb6j33tm
2013-02-15 15:35:03 +01:00
niv-openerp b30307da32 Revert 4580
bzr revid: nicolas.vanhoren@openerp.com-20130215123324-m10141rj595x30pl
2013-02-15 13:33:24 +01:00
niv-openerp b5209cbf56 merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130215122500-p69xawqym93jauks
2013-02-15 13:25:00 +01:00
Antonin Bourguignon 74ba45d1fc [MERGE] trunk
bzr revid: abo@openerp.com-20130214173522-2ama9xjn4c2hloap
2013-02-14 18:35:22 +01:00
Raphael Collet 49adee3488 [FIX] openerp/service/report: add all missing imports!
bzr revid: rco@openerp.com-20130214153511-r5omlvy5xa1t6rlm
2013-02-14 16:35:11 +01:00
Raphael Collet ca175b0237 [FIX] openerp/service/report: missing import
bzr revid: rco@openerp.com-20130214150825-dp0twlvzc8qrkb7v
2013-02-14 16:08:25 +01:00
Raphael Collet f78eb868fd [IMP] remove model methods _workflow_trigger and _workflow_signal, and replace calls to new workflow methods
bzr revid: rco@openerp.com-20130213140046-84aa1xtlndltlhzy
2013-02-13 15:00:46 +01:00
Antonin Bourguignon f929ebc73b [MERGE] trunk
bzr revid: abo@openerp.com-20130213105620-xyez3q7ddgc0x5x8
2013-02-13 11:56:20 +01:00
Raphael Collet 53152d7bf4 [FIX] openerp.service: remove call to open_openerp_namespace
bzr revid: rco@openerp.com-20130212161330-kij5s3v35zzp1536
2013-02-12 17:13:30 +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
Antonin Bourguignon fbb51ee106 [MERGE] trunk
bzr revid: abo@openerp.com-20130212125650-3r8lsai6p5c8ls2h
2013-02-12 13:56:50 +01:00
Vo Minh Thu 96f7f49b3e [MERGE] Latest bugfixes from 7.0, up to rev 4834.
bzr revid: vmt@openerp.com-20130212104546-v2w5k59egx1fiony
2013-02-12 11:45:46 +01:00
Antonin Bourguignon e274ccc7cb [MERGE] trunk
bzr revid: abo@openerp.com-20130211150920-c5yam3yykht1qdpn
2013-02-11 16:09:20 +01:00
Antony Lesuisse d0392a2db0 [FIX] workers no suicide on broken pipe
bzr revid: al@openerp.com-20130209172932-5w8zt239tw0sirne
2013-02-09 18:29:32 +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
Vo Minh Thu b4aedf0cc6 [FIX] cron: Looping over all existing databases seems a bad idea (when -d is not given on the command-line).
bzr revid: vmt@openerp.com-20130204165903-gzjghbg7bgjqn5jy
2013-02-04 17:59:03 +01:00
Vo Minh Thu 665fc8d8f1 [REF] openerp.service.{rpc,route,handler} decorators moved to openerp.http.
bzr revid: vmt@openerp.com-20130201093727-pgcvauuo87o2a3p6
2013-02-01 10:37:27 +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 7b789f0865 [FIX] At the end of the database creation polling, None passwords are no more returned (for e.g. the portaluser).
bzr revid: vmt@openerp.com-20130131130447-3obyq2ch2omerypo
2013-01-31 14:04:47 +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 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 fc27a7b3a4 [REF] netrpc: removed.
bzr revid: vmt@openerp.com-20130130135735-pskmwbkmgfotjx1e
2013-01-30 14:57:35 +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
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
Antonin Bourguignon 59dc49061c [IMP] we don't need a special type of exception anymore
bzr revid: abo@openerp.com-20130124154119-5283u6x1it5xvt0r
2013-01-24 16:41:19 +01:00
Antonin Bourguignon aab0dd122a [MERGE] trunk
bzr revid: abo@openerp.com-20130122122250-8pu5jycraqj435nu
2013-01-22 13:22:50 +01:00
Vo Minh Thu 6fe1c4faec [MERGE] merged oe-related changes:
- added a cron command
- added a web command
- added rst documentation
- changed the read command to use the environment when --addons is not given

bzr revid: vmt@openerp.com-20130121163525-im9rt2pvljz3bs7t
2013-01-21 17:35:25 +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
Antonin Bourguignon 8bd622202b [IMP] introduce a new type of exception: WarningConfig. Note that no corresponding RPC_FAULT_CODE has been added; WarningConfig will share the same RPC_FAULT_CODE than Warning (RPC_FAULT_CODE_WARNING = 2)
Also remove a few whitespaces

bzr revid: abo@openerp.com-20130118152346-5v4j94wjrq34hq4m
2013-01-18 16:23:46 +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
niv-openerp d211ac7798 merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130114102410-m60y4kh8o69u00hc
2013-01-14 11:24:10 +01:00
Vo Minh Thu 8119d89200 [ADD] oe web: run an OpenERP web process.
bzr revid: vmt@openerp.com-20130111153113-ue2ybx33e2gh99sx
2013-01-11 16:31:13 +01:00
niv-openerp cb33e09d1b Socket is inited by master process
bzr revid: nicolas.vanhoren@openerp.com-20130110163314-449euw1z69eebtpz
2013-01-10 17:33:14 +01:00
niv-openerp 383314f273 First version working with multicorn
bzr revid: nicolas.vanhoren@openerp.com-20130110161936-4515hhdlamd3d25r
2013-01-10 17:19:36 +01:00
niv-openerp 4db73a4c7c merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130108090624-cubi563m34f1j6ab
2013-01-08 10:06:24 +01:00
Xavier ALT 44d536d40d [FIX] win32: use 'net' command for service start/stop operation
* We have to wait for complete service stop before trying to re-start
    OpenERP service, otherwise service manager will complain that the
    service is already running - and thus preventing to it start.
      'sc' command only send a query to service manager without waiting
    for completion - instead we use 'net' command which wait for complete
    start/stop operation.

bzr revid: xal@openerp.com-20130107162302-xtf44nm10859203w
2013-01-07 17:23:02 +01:00
Antony Lesuisse 6c6fa1b7ee [FIX] memory logging for cron workers
bzr revid: al@openerp.com-20121229133616-mbx0732l1uvyb1eo
2012-12-29 14:36:16 +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 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
dle@openerp.com 73cb6d5321 [FIX]Try to create already existing database throws warning instead of traceback.
bzr revid: dle@openerp.com-20121221090925-2i82d31dc061zngn
2012-12-21 10:09:25 +01:00
Antony Lesuisse 565853b732 [MERGE] trunk
bzr revid: al@openerp.com-20121219030106-i59u10tml3baqvun
bzr revid: al@openerp.com-20121219150107-8l92w2bi510yem45
2012-12-19 16:01:07 +01:00
Raphael Collet b63518345e [FIX] web_services: fix incorrect query to set admin's password and lang
bzr revid: rco@openerp.com-20121219093816-atf0p0jtuwv6hd31
2012-12-19 10:38:16 +01:00
Antony Lesuisse edef11eaaf apps dont break protocol
bzr revid: al@openerp.com-20121219023226-gfceiyrmi50my80e
2012-12-19 03:32:26 +01:00
Christophe Simonis 0c7f17c0ac merge upstream
bzr revid: chs@openerp.com-20121217172614-3z1pstu5th26wuuc
2012-12-17 18:26:14 +01:00
Xavier Morel d0a377cb1c [FIX] incorrect docstrings or docstring param names not matching actual param names
bzr revid: xmo@openerp.com-20121214130758-a2wp963w4djmb02k
2012-12-14 14:07:58 +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 c4fcf264c0 [IMP] workers request count on exit
bzr revid: al@openerp.com-20121211012436-gnr3vxhoye1xf0dh
2012-12-11 02:24:36 +01:00
Christophe Simonis 236df95b22 merge upstream
bzr revid: chs@openerp.com-20121210132406-9ro3amw6s6pzeez4
2012-12-10 14:24:06 +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
Nimesh (Open ERP) 480e116b40 [MERGE] with trunk
bzr revid: nco@tinyerp.com-20121210070332-6h5qnlcf4whjv7p5
2012-12-10 12:33:32 +05:30
Antony Lesuisse 0801f22e04 [IMP] workers setproctitle if available
bzr revid: al@openerp.com-20121209215336-rvmy0dejfpmy1awi
2012-12-09 22:53:36 +01:00
Antony Lesuisse cf31a12d94 [IMP] workers cron dont keep cursors
need for saas and demo

bzr revid: al@openerp.com-20121209212242-s3a91vxg8bixqls7
2012-12-09 22:22:42 +01:00
Antony Lesuisse 97ab217893 [IMP] workers cron logging and chorus
bzr revid: al@openerp.com-20121209204544-7w98xboxh6uytz43
2012-12-09 21:45:44 +01:00
Antony Lesuisse 099ae0f70c [IMP] workers better logging
bzr revid: al@openerp.com-20121209203134-sobl1m3q53bjne2i
2012-12-09 21:31:34 +01:00
Antony Lesuisse a4fcf06301 [FIX] temporary fix workers cron for missing openerp.addons.base
bzr revid: al@openerp.com-20121209200018-bvzdy7nhkyo6kaun
2012-12-09 21:00:18 +01:00
Antony Lesuisse 17ec9a3422 [FIX] workers graceful shutdown
bzr revid: al@openerp.com-20121209193022-r4h1ksmqrk2cfnds
2012-12-09 20:30:22 +01:00
Antony Lesuisse ae45df93a4 misc
bzr revid: al@openerp.com-20121209190543-83hmvyfcu1af7wiv
2012-12-09 20:05:43 +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 0ef9f2e4b6 [MERGE] trunk
bzr revid: al@openerp.com-20121209182643-9fv5ge2b2r2hrpbv
2012-12-09 19:26:43 +01:00
Antony Lesuisse 5790312d65 netsvc, netrpc, wizardcleanup
bzr revid: al@openerp.com-20121209181536-au8u47557i45wizl
2012-12-09 19:15:36 +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
Antony Lesuisse 603009f5bc [FIX] duplicate database
bzr revid: al@openerp.com-20121209030348-iyh2zz6oseuu14c6
2012-12-09 04:03:48 +01:00
Antony Lesuisse 3d2a09a973 multiprocessing signaling manually backported from 6.1
bzr revid: al@openerp.com-20121208181151-lfy956ysnok5b5hf
2012-12-08 19:11:51 +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
Christophe Simonis effec78db7 [FIX] correct reexecute. works for windows service
bzr revid: chs@openerp.com-20121205175630-6y8ul4ki13z0coyh
2012-12-05 18:56:30 +01:00
Christophe Simonis 097254fe00 [FIX] correct reexecute. works on windows
bzr revid: chs@openerp.com-20121205155209-aqra9rtvq11uq37d
2012-12-05 16:52:09 +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
Christophe Simonis 8dbee5c473 [FIX] service/__init__.py: do not join() main thread
bzr revid: chs@openerp.com-20121205143222-vrasdnzhdtdr307c
2012-12-05 15:32:22 +01:00
Nimesh (Open ERP) 713a9e31fe [MERGE] merge with lp:openobject-server
bzr revid: nco@tinyerp.com-20121204120249-yvw89bih2ad94f3u
2012-12-04 17:32:49 +05:30