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
The test setup starts an OpenERP server similarly to the
openerp-server script. For this to be possible, some of
its code is moved to openerp.services.
bzr revid: vmt@openerp.com-20110923133408-qqf4i5l86pkk7xn5
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
- 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
(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
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
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
- 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
- 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
- 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