The meaning of any SSL certificate (even self-signed) is that it uniquely
identifies the server. So, if we have a generic cert distributed with our
packaging, we break that. We could not even generate a cert at the "build"
stage of our server, because that would be included in the packages.
If anybody needs to run OpenERP with SSL, they will need to generate the
certificate at the target server, possibly using ssl-cert.cfg as a sample.
Also, the "ssl" directory under bin/ would confuse some pythonic code that
had tried to "import ssl" (eg. urllib.py).
bzr revid: p_christ@hol.gr-20101123135844-nr8k78qrmlyn19xb
A closed cursor should behave the same as a closed connection, ie.
OperationalError. Also instrument a function we don't expect to be called.
bzr revid: p_christ@hol.gr-20101123135837-vkn3ph0e4bz9urf0
When a column changes type in module upgrades, we have code to rename
the column. The new name shall be based on the old column name, not the
name of the table.
bzr revid: p_christ@hol.gr-20101123135748-z8rtmy36c8u972xb
Inspecting the full stack just to learn the file:line info for debugging
purposes is both expensive and error-prone. Write an alternative function
in tools/func.py that will just go N frames back and try to get the info.
bzr revid: p_christ@hol.gr-20101123135742-2jp75f3uxyg3a6b6
If a res.user belongs to a company_id that the current user has no access
to, perm_read() wouldn't be able to return results (but exception). Now,
just skip the uid->login resolution and return the numeric value instead.
bzr revid: p_christ@hol.gr-20101123135654-bslxfv93p10216d3
Since we have moved all code into the websrv_lib, we must also support
this non-standard extension in our do_OPTIONS(). It has been noted that
some Win XP machines wouldn't connect to our WebDAV unless we set that
header.
bzr revid: p_christ@hol.gr-20101123134932-65wmh8bntuwt4jvc
This fixes the support for callable sql_constraint messages, which have
always been wrong. It respects the (cr, uid, ids, context) arguments and
will fallback to Postgres's error if it cannot call.
Note that sql constraints are not properly explained when base_module_record
or audittrail are installed.
bzr revid: p_christ@hol.gr-20101118184643-8tnmj83b09kuvf1j
Done after bug [655783], the osv layer is too early to call the _().
Also, we cannot trust the cursor to perform a further SQL query on
it, since it carries the IntegrityError.
bzr revid: p_christ@hol.gr-20101118184638-2yrfpvx9har48h1g
Also, fix way that callable constraints are passed with the context so
that they can have translatable strings inside (but not on the results
of the callable).
Conflicts:
bin/addons/base/ir/ir_model.py
bin/addons/base/module/module.py
bin/tools/translate.py
bzr revid: p_christ@hol.gr-20101118164721-19rgx43d3p96b2lf
Useful for automated statistics, returns the global SQL counter of queries.
It does not affect any counters, and will print a warning if debug_sql
is not enabled (counter would be zero, then).
bzr revid: p_christ@hol.gr-20101117115232-olq747j4vmauqgy8
The loop would only consider models that have >0 records registered in
ir.model.data.
This is merge of commits 3988ebf4dc130, 070e7d6ac717de and adapt to trunk.
bzr revid: p_christ@hol.gr-20101116163510-yemzlcy0f0yk893l
The os user and sys elapsed times are very useful for performance metrics,
they can tell us how much did the openerp server try for some operation.
Conflicts:
bin/service/web_services.py
bzr revid: p_christ@hol.gr-20101116162025-go5lx4qs658pt7t5