Even on Unix systems the PGPASSWORD env var
is necessary when Postgres is configured to
deny unix socket connections or to require
a password anyway. This avoids asking admins
to manually create a ~/.pgpass file in order
to use the dump/restore tools.
Also did some cleanup to ensure the PGPASSWORD
var is removed from the environment as soon
as the operation is done.
lp bug: https://launchpad.net/bugs/790164 fixed
lp bug: https://launchpad.net/bugs/919100 fixed
bzr revid: odo@openerp.com-20120131110849-tji6ipjovxc9oi4v
Provides a way to login for a given environment, passing
user agent environment parameters.
Currently used to initialize the web.base.url config
parameter based on the web host whenever the admin user
logs in.
bzr revid: odo@openerp.com-20111013104750-y0natm9v3wapn10l
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
- 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
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
- 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