Commit Graph

21 Commits

Author SHA1 Message Date
Vo Minh Thu 157580b8e8 [IMP] xmlrpc: use proper exception type to map to xmlrpc error codes.
bzr revid: vmt@openerp.com-20110926151403-fhx4ph22tua2s3st
2011-09-26 17:14:03 +02:00
Vo Minh Thu b7a0c1061e [IMP] xmlrpc: correctly use int fault code instead of string.
bzr revid: vmt@openerp.com-20110925162925-7d0p807u6h087whk
2011-09-25 18:29:25 +02:00
Vo Minh Thu a7a826b2df [IMP] netsvc: removed unused auth param.
The auth param is an auth proxy/provider. The idea is that an auth proxy
is associated to some HTTP request handler. The handler can then use it
when necessary, depending on the accessed resource.
As of now, it is only used by the webdav module. But really, the caldav
module accesses the proxy directly on the handler.
Currently in web_services, authentication is simply done via
security.check().

bzr revid: vmt@openerp.com-20110925152318-i3jvimumm51e2lu4
2011-09-25 17:23:18 +02:00
Vo Minh Thu a254a13dc3 [IMP] xmlrpc: versioned API.
bzr revid: vmt@openerp.com-20110925150923-au0u0nply8lriise
2011-09-25 17:09:23 +02:00
Olivier Dony da705a6b55 [FIX] rpc: honor *_interface options + log it
bzr revid: odo@openerp.com-20110925014243-0q1o67twburpga0z
2011-09-25 03:42:43 +02:00
Antony Lesuisse b91d70a42d [MERGE] trunk
bzr revid: al@openerp.com-20110925000038-qwfvcrmndstygt2d
2011-09-25 02:00:38 +02:00
Antony Lesuisse 73cdf6159e [FIX] wsgi server listen to ipv4 0.0.0.0
bzr revid: al@openerp.com-20110924151831-7nra57wpqq6oqose
2011-09-24 17:18:31 +02:00
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 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
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
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
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 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
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 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 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 a1b433fac8 [IMP] wsgi: make it possible to kill siblings.
bzr revid: vmt@openerp.com-20110824132220-htd1c4ssewwozl35
2011-08-24 15:22:20 +02:00
Vo Minh Thu 94b86a7bf6 [IMP] wsgi: (proof of concept) serving xml-rpc requests behind gunicorn:
> gunicorn openerp:wsgi.application -c gunicorn.conf.py
If you want to try, you should know an addons_path is
hard coded in openerp.wsgi.on_starting().

bzr revid: vmt@openerp.com-20110819130248-tf81ttu42t2uhkuo
2011-08-19 15:02:48 +02:00