Commit Graph

28 Commits

Author SHA1 Message Date
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 3c8571ead0 [IMP] wsgi: added new (still to be refined) routes for XMLRPC dispatching.
bzr revid: vmt@openerp.com-20110901130450-ub41ey4s0060vucg
2011-09-01 15:04:50 +02:00
Vo Minh Thu efd281a21f [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110901130339-0epw03nlkwo29125
2011-09-01 15:03:39 +02:00
Vo Minh Thu 6fdadb04f5 [IMP] tools.cache: added missing clean_caches_for_db replacement.
bzr revid: vmt@openerp.com-20110825124711-y2uckmvcoa0arz4h
2011-08-25 14:47:11 +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 7226046707 [MERGE] some cleaning in module loading code, especially logging.
bzr revid: vmt@openerp.com-20110809120057-h5x68x1gd1ykeu36
2011-08-09 14:00:57 +02:00
Xavier Morel 1e904fe6ad [IMP] db creation: cleanup logging and exception traceback reification
traceback.format_exc was introduced in Python 2.5, no need to muck around with StringIO and print_exc to get a traceback as a string

bzr revid: xmo@openerp.com-20110801085446-8t4oiiccinf9frvs
2011-08-01 10:54:46 +02:00
Xavier Morel 92a9836bbb [IMP] use dict.update instead of __setitem__ sequences
bzr revid: xmo@openerp.com-20110801073050-xr37h37sc8w8xhi5
2011-08-01 09:30:50 +02:00
Xavier Morel 923e4da38c [IMP] db-creation thread code: no need for a class with just a __call__ method, just provide a function
bzr revid: xmo@openerp.com-20110801072529-92okkttbl5h041q9
2011-08-01 09:25:29 +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
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 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 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 5c24a193f7 [REF] web_services: removed unused class.
bzr revid: vmt@openerp.com-20110728120204-ezzhvkbvlw134n2b
2011-07-28 14:02:04 +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 8cfb7dae73 API docs: docstrings, module titles
bzr revid: xrg@linux.gr-20110623090457-y5o7pd5y1ltpo9t9
2011-06-23 12:04:57 +03: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 f2770c9ac4 [FIX] netrpc_server: close as soon as possible the socket, and do it after a communication-level exception.
lp bug: https://launchpad.net/bugs/785009 fixed

bzr revid: vmt@openerp.com-20110606074856-e726j4klc5ljiq5w
2011-06-06 09:48:56 +02:00
Vo Minh Thu 4b3aa9c764 [FIX] modules/loading: revert a change where db.initialize was removed:
- it should be removed
- but some code will test if the ir_module_module table exists
- and will force the demo data.

bzr revid: vmt@openerp.com-20110601113353-hdmyl4is9poss8hh
2011-06-01 13:33:53 +02:00
Vo Minh Thu 2f6dff7690 [MERGE] moved around some code (preparing for some refactoring) (large diff).
bzr revid: vmt@openerp.com-20110525160607-45pq13910rduijkk
2011-05-25 18:06:07 +02:00
Vo Minh Thu 261cb1079d [REF] ir_values:
- context=None instead of context={}
- removed common.ir_{set,get,del} from xmlrpc as it is not used anymore.

bzr revid: vmt@openerp.com-20110518154832-42f1k6ii093r12vs
2011-05-18 17:48:32 +02:00
Vo Minh Thu a09b91d8fd [REF] simplified init_db/load_modules:
- removed unnecessary call to openerp.modules.db.initialize() in openerp/service/web_services.py
  as the pooler.restart_pool() call just next after is already doing it.
- made the try/finally section bigger in openerp/modules/loading.py, to inlcude
  the first cr.execute.
- abstracted the test to check if a database is initialized.
- removed unnecessary "if cr:" as the cr is nevertheless used after that.

bzr revid: vmt@openerp.com-20110517091822-pjtw6sc1s5assbr5
2011-05-17 11:18:22 +02:00
Vo Minh Thu 5ca0f64b4e [REF] moved init_db from tools.misc to modules.db.
bzr revid: vmt@openerp.com-20110511144754-m06exg4dsn2jbdgz
2011-05-11 16:47:54 +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 545a438c03 [REF] openerp.modules
- for the moment it is a copy of openerp.addons

bzr revid: vmt@openerp.com-20110420152718-eok61oule6p2x58z
2011-04-20 17:27:18 +02:00
Vo Minh Thu 0e1186dd3d [REF] openerp.pooler/openerp.sql_db: cleaner dependencies:
- openerp.pooler no longer provides get_db_only, which is a provided by sql_db
- openerp.sql_db does not rely anymore on netsvc, which is goog as it was
making a circular import. The downside is that db_close callers have to clean
also the Agent themselves.

bzr revid: vmt@openerp.com-20110420141407-au0oanwjc0t15vy5
2011-04-20 16:14:07 +02:00
Vo Minh Thu 342f2047cf [REF] openerp-server: better imports.
bzr revid: vmt@openerp.com-20110418155733-gt8shgr0yilo20mw
2011-04-18 17:57:33 +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