| Age | Commit message (Collapse) | Author |
|
|
|
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
automatically in all countries thanks to Berne Convention + WTO rules,
and a reference to the applicable license is clear enough.
|
|
Unify and refactor exception handling in framework and addons.
The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
- `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
- `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
- `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
- `MissingError`: raised when an operation is attempted on a record that does not exist.
- `ValidationError`: raised when an operation violates a SQL or Python constraint.
- All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.
All exceptions take a single message argument.
The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.
A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.
This commit introduces a more consistent policy for logging errors and warnings:
- All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
- All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
- All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
|
|
Let 2015 be a year without modelines!
cf #4174
|
|
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.
- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
|
|
|
|
bzr revid: fka@tinyerp.com-20130613071422-9iw22gkm33epbkpb
|
|
bzr revid: ggh@tinyerp.com-20130429071557-vnxo5nni03vc886j
|
|
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
|
|
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
|
|
'subscription.subscription'
bzr revid: cha@tinyerp.com-20130321052849-bpxq2bye0flzj28p
|
|
Due to the way cron jobs are executed in multi-process
environments, the cron arbiter holds an exclusive lock
on the cron task row in the database.
During the course of the subscription cron jobs execution
they attempt to alter a record that has a FK towards
the cron task row, effectively deadlocking the whole
cron processing thread.
The fix is rather hackish: remove the explicit FK
constraint from the subscription model towards
ir.cron - this prevent PostgreSQL from requesting
an exclusive lock and triggering a deadlock.
This is only a temporary solution, the subscription
module should be rewritten for the next stable release.
bzr revid: odo@openerp.com-20130320153430-bho6ou8b7ziohcb0
|
|
'subscription.subscription'
bzr revid: cha@tinyerp.com-20130320094748-fam2fosjsctfziyl
|
|
'subscriptions
bzr revid: cha@tinyerp.com-20130313055937-n85y0cr963f5zzlm
|
|
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
|
|
bzr revid: fp@tinyerp.com-20120930120059-0vyt3vmy9yoa3ecs
|
|
bzr revid: vba@tinyerp.com-20120917100356-qxo6yoxe3p2710zs
|
|
\!')
bzr revid: abo@openerp.com-20120807113137-44vehm0mthqawlo3
|
|
bzr revid: ssu@tinyerp.com-20120504115748-2vd1dns7bxptg384
|
|
lp bug: https://launchpad.net/bugs/924327 fixed
bzr revid: kjo@tinyerp.com-20120202113216-qpbzcz0fmot9wf3f
|
|
bzr revid: fp@tinyerp.com-20111002161940-r2b0fj0uut75ay1e
|
|
bzr revid: fp@tinyerp.com-20110917121817-vusb4yvf6d6dvait
|
|
checking for context from methods.
bzr revid: uco@tinyerp.com-20101213064309-vg36f1510xv2f8zb
|
|
bzr revid: uco@tinyerp.com-20101206131102-z2xzz8eshkswo00q
|
|
bzr revid: uco@tinyerp.com-20101123070505-9i2lrqhgxzaii3zn
|
|
bzr revid: uco@tinyerp.com-20101122103753-idv9fdaqc28rvugu
|
|
bzr revid: sbh@tinyerp.com-20101115111222-x6hb9v8o17z2q8ez
|
|
bzr revid: qdp-launchpad@tinyerp.com-20101108130435-y9kj7bhu8ttida5c
|
|
bzr revid: uco@tinyerp.com-20101015140153-tyy27fby84tijohb
|
|
bzr revid: vir@tinyerp.com-20100921070736-pdszbx65t36ha1w3
|
|
bzr revid: vir@tinyerp.com-20100906123440-knm5kys9dzvwd2zt
|
|
bzr revid: vir@tinyerp.com-20100702083250-k0x6clkog8iqjo6f
|
|
bzr revid: fp@tinyerp.com-20100519183232-9zieyfnah526r312
|
|
bzr revid: stephane@openerp.com-20100112091839-a6p7tenhb4e4zxyx
|
|
bzr revid: uco@tinyerp.co.in-20091221122132-hkesf2dy48lpdvum
|
|
bzr revid: hmo@tinyerp.com-20091128110526-yen7frgcg9nkbn7h
|
|
bzr revid: uco@tinyerp.co.in-20091123135238-oadv1oyefpsi9631
|
|
type.
lp bug: https://launchpad.net/bugs/435298 fixed
bzr revid: jvo@tinyerp.com-20091112091453-wus13ocpep0rmgmp
|
|
bzr revid: hda@tinyerp.com-20091014111534-1vtk21rz8byhszzf
|
|
lp bug: https://launchpad.net/bugs/357182 fixed
bzr revid: hda@tinyerp.com-20091013055837-3ntnbe8b938xmk97
|
|
lp bug: https://launchpad.net/bugs/435178 fixed
bzr revid: hmo@tinyerp.com-20090923125231-skjg2hkhw3tbvdsz
|
|
bzr revid: stephane@tinyerp.com-20090104221250-55q32ayj2t8kzb2k
|
|
bzr revid: christophe@tinyerp.com-20081103191856-jhcivvwb16fvz2os
|
|
bzr revid: fp@tinyerp.com-20080828230810-nt2h294l3w6ox3iy
|
|
bzr revid: fp@tinyerp.com-20080821135055-ijznyq0mftrcisy8
|
|
bzr revid: christophe@tinyerp.com-20080723144147-77o5t9adx26a84lt
|
|
bzr revid: christophe@tinyerp.com-20080722151128-f5zy75tsn8pgtndd
|
|
* the export of translations per module take only the files of these modules
bzr revid: chs@tinyerp.com-77721e34d87043c4008239f004c7c616f6d4dc82
|
|
bzr revid: stw-d9a6d631f7cfdab5a120a6b0104ce2dbf8644841
|
|
bzr revid: stw-3687e75a6129c56b847ba26d6b256cdafeb444ab
|