Commit Graph

727 Commits

Author SHA1 Message Date
Vo Minh Thu d743353e16 [IMP] wsgi: provide the start- and stop-server functions.
bzr revid: vmt@openerp.com-20110914150603-zu6zh4v7pmnchvf3
2011-09-14 17:06:03 +02:00
Vo Minh Thu 46ad605226 [IMP] wsgi:
- added Microsoft specific header for webdav.
- serve WSGI handlers with werkzeug when available.
- effectively use WSGI instead of netsvc HTTP stack.

bzr revid: vmt@openerp.com-20110914104300-n0l3dnmdu3jau7w2
2011-09-14 12:43:00 +02:00
Vo Minh Thu d593e484c4 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110913144916-er9fnuj00cj93cev
2011-09-13 16:49:16 +02:00
Vo Minh Thu ad06d1ba56 [FIX] This complements commit 3511,
revision-id: odo@openerp.com-20110714105552-9tgofrjtdgjmgc4b.
Each OpenERP cursor is mapped to a single psycopg2 connexion.
When a cursor is closed, the connexion is pushed back to a
pool and reused later. Now that the 'snapshot isolation' level
is used, the fact we didn't properly commit/rollback a
transaction appears: some 'concurrent' update showed up.
The fix is simple: whenever a cursor is closed, we rollback
any pending operation (which is the expected behavior).
(Furthermore, the connexion is explicitely closed when the
connexion is pushed back but not kept in the pool.)

bzr revid: vmt@openerp.com-20110913143444-s49r7r2h6m00p5s3
2011-09-13 16:34:44 +02:00
Olivier Dony 1044d63047 [MERGE] view.rng: @default_group_by for kanban view
bzr revid: odo@openerp.com-20110912152416-rk42c970okvdyla3
2011-09-12 17:24:16 +02:00
Fabien Meghazi 7fb1eb5a64 [IMP] Added default_group_by attribute for kanban view
bzr revid: fme@openerp.com-20110912150844-dtohl83qew4ssdyc
2011-09-12 17:08:44 +02:00
Xavier Morel 9483efd463 [FIX] fix
bzr revid: xmo@openerp.com-20110912145510-wpa2cgm4zx4fwe9o
2011-09-12 16:55:10 +02:00
Xavier Morel f03892c5db [FIX] ir.actions.server: only try to browse the object of a server action (pointed-to by active_id + active_model) only if active_model matches the action's model
bzr revid: xmo@openerp.com-20110912144411-bzh99xqr7c1ucu1a
2011-09-12 16:44:11 +02:00
Vo Minh Thu 995a037f2d [IMP] wsgi: set the config via gunicorn config file.
bzr revid: vmt@openerp.com-20110912102147-yxgv9hpm4fvoxqn6
2011-09-12 12:21:47 +02:00
Xavier Morel ce835b6dfe [FIX] @colors expression: in on single string (instead of singleton), works by coincidence. Replace by equality test
bzr revid: xmo@openerp.com-20110911132514-39cy0gldyt1ixy3m
2011-09-11 15:25:14 +02:00
Launchpad Translations on behalf of openerp 40ccd8a307 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110910050134-g9u7swpuqxjvk2uc
bzr revid: launchpad_translations_on_behalf_of_openerp-20110910050147-o7l8x27ph9y63m3r
2011-09-10 05:01:47 +00:00
Vo Minh Thu 77fbcb3c79 [FIX] websrv_lib: the auth provider was instanciated once and
the auth proxy was instanciated multiple times (once per handler instcance).
The previous refactoring merged the proxy and the provider in one class which
once instanciated once. Now it is instanciated once per handler, which is
better.

bzr revid: vmt@openerp.com-20110909122856-29uhsjfe193fqdi8
2011-09-09 14:28:56 +02:00
Olivier Dony f59aaf7ca0 [FIX] ir.translation: second part of previous revision for fixing calls to ormcache_multi.clear_cache()
bzr revid: odo@openerp.com-20110909104046-ipysy6pi3iea38fu
2011-09-09 12:40:46 +02:00
Antony Lesuisse 78626b885c [FIX] ir_translation _get_ids clear_cache is not multi
lp bug: https://launchpad.net/bugs/838864 fixed

bzr revid: al@openerp.com-20110909100709-kdqf4aibdr0flr4a
2011-09-09 12:07:09 +02:00
niv-openerp 061df0800d [imp] added properties for statusbar in .rng of views
bzr revid: nicolas.vanhoren@openerp.com-20110909093643-h0jnvcytov70be8o
2011-09-09 11:36:43 +02:00
Vo Minh Thu 9ca78ea013 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110909074820-o89mwdulwx8an13m
2011-09-09 09:48:20 +02:00
Vo Minh Thu 4a1597ab16 [FIX] typo, removed wsg_modules entry point (redundant with "module_handlers").
bzr revid: vmt@openerp.com-20110909073145-vqnjhdu0xwb8wurt
2011-09-09 09:31:45 +02:00
Launchpad Translations on behalf of openerp e65666493d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110908043626-5c0ixnnwl79nkotp
bzr revid: launchpad_translations_on_behalf_of_openerp-20110909043730-o6s4fx8rueje9h3j
2011-09-09 04:37:30 +00:00
Vo Minh Thu 5b20065d78 [FIX] wsgi: missing argument to start_response, add "/" prefix only when needed.
bzr revid: vmt@openerp.com-20110908153700-ppfqhf7v5l9s3m65
2011-09-08 17:37:00 +02:00
Vo Minh Thu e643ffcc32 [REF] websrv_lib:
- grouped together the concept of auth proxy and auth provider
- removed the sec_realms dictionary: it was redundant as the
auth proxy was set (in one of the implementation, not all) on
the handler by setupAuth. Now the auth proxy is always set on
the handler.
- reg_http_service accepts the argument of the HTTPDir
constructor.

bzr revid: vmt@openerp.com-20110908123818-suc53zebgv9kcy3c
2011-09-08 14:38:18 +02:00
Vo Minh Thu 17c54e1217 [IMP] wsgi: cleaner code, moar comments.
bzr revid: vmt@openerp.com-20110908094830-kls32ewruywepjmm
2011-09-08 11:48:30 +02:00
Vo Minh Thu 1cd7804374 [REF] websrv_lib: moved vdirs mangement code to websrv_lib
(from service.http_server). The vdirs list is now a global variable, containing
both secure-only and non-necessarily-secure handlers. This makes it possible
to register handlers without being too tied to the multi http request handler.
The goal is obviously to make it possible to serve those handlers by other
means than the multi handler.

bzr revid: vmt@openerp.com-20110907154217-f30nrzgvw45ga2q8
2011-09-07 17:42:17 +02:00
Vo Minh Thu 14a82cdf9f [IMP] wsgi: WSGI-to-BaseHTTPRequestHandler, there are
probably some shortcomings but the document_webdav/test/webdav_test1.yml
tests pass.

bzr revid: vmt@openerp.com-20110907141318-4gxmyztv1zp6sk7q
2011-09-07 16:13:18 +02:00
Olivier Dony 7d3d3a6aba [FIX] fields.function: type=binary: workaround for the low byte values (<=0x1f) unsupported in XML
We have a workaround in place for fields.function of binary type
that may return values that are invalid in XML documents, and thus
in our XML-RPC protocol. But out workaround failed to care for the
invalid XML codepoints (below 0x1f) that are well valid in UTF-8
encoding.
Added a sanity check for that as well, using a terrible workaround
for this last resort case: b64-encode the bytes, to avoid crashing
the request.

bzr revid: odo@openerp.com-20110906173140-vc4tl6wstzt8h06o
2011-09-06 19:31:40 +02:00
Olivier Dony eab6a77a26 [IMP] ir.model.data: usability - rename `XML ID` -> `External ID`
bzr revid: odo@openerp.com-20110906075711-lev8g5tkfhc9j3c1
2011-09-06 09:57:11 +02:00
Vo Minh Thu c126c107c3 [MERGE] merged the kanban view rng definition.
bzr revid: vmt@openerp.com-20110905150942-987hlgchx2tg3c8n
2011-09-05 17:09:42 +02:00
Olivier Dony d462066939 [MERGE] res.users: make set-only password field more user-friendly
lp bug: https://launchpad.net/bugs/798681 fixed

bzr revid: odo@openerp.com-20110905090936-s84b6dc18gr6p6gl
2011-09-05 11:09:36 +02:00
Yogesh (OpenERP) 004a92829e [MERGE] Merge with trunk server upto revision no 3569.
bzr revid: ysa@tinyerp.com-20110905045551-jp9fwif57xbma3d3
2011-09-05 10:25:51 +05:30
Antony Lesuisse ef3935553c [FIX] ir_translation cache invalidation
bzr revid: al@openerp.com-20110902155834-rmno5z7aavj71fk5
2011-09-02 17:58:34 +02:00
Vo Minh Thu 0a6fe4d1f7 [IMP] wsgi: added exception handling.
bzr revid: vmt@openerp.com-20110902150226-223gkl4efb8o8jhs
2011-09-02 17:02:26 +02:00
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 8ca1a87201 [IMP] wsgi: modules can be pre-loaded and expose a WSGI handler.
An option --load is added to list the modules to pre-load.
sys.path and sys.modules are initialized when the config is
parsed.

bzr revid: vmt@openerp.com-20110902133136-4v7fgptyd0g1kc5s
2011-09-02 15:31:36 +02:00
Vo Minh Thu 79d0e39c4c [FIX] loading: load base only once.
bzr revid: vmt@openerp.com-20110902132712-j9bgfnzbmddarr7h
2011-09-02 15:27:12 +02:00
Olivier Dony 52f6e15e5c [FIX] ir.ui.menu: typo during merge of simplified cache
bzr revid: odo@openerp.com-20110901143038-dpuehbd8p1e0o3qz
2011-09-01 16:30:38 +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
Xavier Morel eac94dd2c9 [FIX] diagram view schema: diagram children are a single 'node' and a single 'arrow', in this order. Also require at least one 'field' in both node and arrow
bzr revid: xmo@openerp.com-20110901114349-c279654t361ta3q5
2011-09-01 13:43:49 +02:00
Launchpad Translations on behalf of openerp 24536a8e74 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110901044607-258xb4cenlrgh16h
2011-09-01 04:46:07 +00:00
Antony Lesuisse d4dc332b2f [FIX] res_lang clear cache remove kwargs, typo
bzr revid: al@openerp.com-20110831182216-afohhdmshv60y3g3
2011-08-31 20:22:16 +02:00
Fabien Meghazi 10e06c2300 [IMP] Improved rng for kanban view
bzr revid: fme@openerp.com-20110831153933-jvpnrysi5hc42z04
2011-08-31 17:39:33 +02:00
Olivier Dony 8add1d7459 [REM] view.rng: remove unused 'default' attribute, as planned in bug 687272
lp bug: https://launchpad.net/bugs/687272 fixed

bzr revid: odo@openerp.com-20110831153012-0tnrtgvar4hccnvr
2011-08-31 17:30:12 +02:00
Antony Lesuisse 519068f60a [FIX] res_lang clear cache remove kwargs
bzr revid: al@openerp.com-20110831142213-0kdmcgmt02tq4gse
2011-08-31 16:22:13 +02:00
Fabien Meghazi 37d7ccdd3f [MERGE} Merge with trunk
bzr revid: fme@openerp.com-20110830140814-ek68i2033zls1cc6
bzr revid: fme@openerp.com-20110831134240-gu3l0nul165hdiyi
2011-08-31 15:42:40 +02:00
Xavier Morel ddadb2ce75 [FIX] issue in splitting field paths for export: would create empty path sections because too eager
do replacement in two passes of re-base replacement: replace old-style 'field:id' and 'field.id' in resp. 'field/id' and 'field/.id', don't touch anything else (especially not 'field/.id') and leave them through instead.

bzr revid: xmo@openerp.com-20110831094547-8evd7ecm5qojspnr
2011-08-31 11:45:47 +02:00
Vo Minh Thu 2e7927331d [FIX] registry: forgot the self/cls args.
bzr revid: vmt@openerp.com-20110831075639-0ywrg01e6zdff7l7
2011-08-31 09:56:39 +02:00
Vo Minh Thu 1300ac804d [MERGE] res.currency: added res.currency.rate.type model.
bzr revid: vmt@openerp.com-20110830140936-pnmtt6f8jsvw32m4
2011-08-30 16:09:36 +02:00
Quentin (OpenERP) 399de9724c [IMP] base, res.currency: code cleaning
bzr revid: qdp-launchpad@openerp.com-20110830132035-x2gs62lft5o19u6i
2011-08-30 15:20:35 +02:00
Quentin (OpenERP) 9c6fcf06d2 [IMP] base, res.currency: code cleaning
bzr revid: qdp-launchpad@openerp.com-20110830125521-1kt54s56865388ch
2011-08-30 14:55:21 +02:00
Quentin (OpenERP) 13b2db3631 [FIX] base, res.currency: ProgrammingError. When giving a context value like {'currency_rate_type_id': False}, it crashed because the value False was kept instead of None. Thanks Guewen (c2c) for the clue.
bzr revid: qdp-launchpad@openerp.com-20110830122701-yrcpo19lokkgrpcc
2011-08-30 14:27:01 +02:00
Vo Minh Thu bdd0c7cf3f [IMP] simplified cache implementation (and stored on the osv), does not support contexts.
bzr revid: vmt@openerp.com-20110830121541-abov2wezdn6kl2dc
2011-08-30 14:15:41 +02:00