Commit Graph
196 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 5967d21d46 Remove database management from RPC
issue5384
review29311002
2016-07-07 16:05:45 +02:00
Cédric Krier 16f0e84f25 Format the exception inside the try/except
Outside the try/except sys.exc_info returns None values, so we must format the
traceback inside the try/except.

issue5647
review23221002
2016-06-18 12:04:45 +02:00
Cédric Krier 2c390fe71a Add customizable login process
It adds new configuration option to define the list of login methods.
It defines a new Exception to use to request user data during the login
process.
It separates the generic login attempt protection from the actual
authentication method.
It replace the API of the login methods to use a dictionary of parameters
instead of a single password.

issue5521
review16191003
2016-05-31 12:49:23 +02:00
Cédric Krier b08b37423d Decode data before json loads
issue5536
review23041002
2016-05-10 10:19:22 +02:00
Cédric Krier 5b68149ea8 Update translations 2016-05-01 10:59:39 +02:00
Thierry Bruyere 91cd4040fa Database locked at first wizard execution with sqlite backend
Cache.resets create a new transaction but SQLite keeps a lock from the previous
transaction is it was not committed.
This commit was removed by changeset 9b2e0aac2d9c

issue5388
review16211002
2016-04-30 23:26:47 +02:00
Cédric Krier 506552af4e Log as error DatabaseOperationalError exceptions 2016-04-06 23:57:58 +02:00
Cédric Krier 1b33a4b3ed Fix connection leak on postgresql
All connections must be put back to the pool otherwise they will never be
reused and so exhaust the pool limit.

issue5421
review20121002
2016-03-25 10:46:12 +01:00
Cédric Krier c19f93cd9b NotLogged exception is no more used
issue5415
review17971003
2016-03-21 23:39:30 +01:00
Cédric Krier 8a4ba59b2d Switch to WSGI API
issue4646
review20541003
2016-03-15 16:57:26 +01:00
Cédric Krier 49a844013e Missing PEP-0249 for db_exist 2016-03-05 18:33:24 +01:00
Nicolas Évrard 2fef479575 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Nicolas Évrard 61018dc9b7 Fix wrong test for existing database introduced in changeset 903a52fc1bb2
issue5238
review18861002
2016-02-23 17:40:30 +01:00
Cédric Krier 29129855ec Add support for Python 3
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Sharoon Thomas 89de660c52 Move webdav into a separate module
issue4703
review7101002
2016-01-16 19:20:30 +01:00
Cédric Krier 14d5de6ac9 Add Hungarian
issue4874
review19321002
2015-09-02 13:49:26 +02:00
Cédric Krier a19d1b7614 Use autocommit transaction for webdav
issue4858
review23291002
2015-07-28 07:53:19 +02:00
Cédric Krier f455a9b6ed Add Italian
issue4840
review18331003
2015-07-09 15:41:53 +02:00
Cédric Krier 46e27a8f3e Add Spanish Mexico
issue4813
review12221002
2015-06-22 22:19:01 +02:00
Cédric Krier a51ac59a93 Add Portuguese (Brazil)
issue4125
review8181002
2015-06-22 22:09:20 +02:00
Cédric Krier 52ff97b165 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:02:01 +02:00
Cédric Krier 34fb7d7471 Drop all cache of a database when it is dropped
issue4584
review11121002
2015-03-25 18:56:52 +01:00
Cédric Krier 01a7cc59a8 Remove execfile from setup.py
issue4654
review15131002
2015-03-19 21:25:20 +01:00
Cédric Krier 611b96c5f0 Add is_instance_method tool compatible with Python3
issue3211
2015-03-18 23:34:55 +01:00
Cédric Krier 31e8634bf4 Fix bytes and bytearray usage
- sqlite can not convert bytearray, must use buffer
- binary value could be stored as unicode
- don't dump bytes as base64 in xmlrpclib if bytes is str
2015-03-16 20:13:03 +01:00
Cédric Krier 5cfde31ed2 Use bytes and bytearray for Binary
issue4637
review11091002
2015-03-16 19:28:34 +01:00
Cédric Krier ad5eb3ed97 Add ModelView.button_change
issue4397
review7781002
2015-03-16 12:56:11 +01:00
Cédric Krier 20484bb013 Fix formatting in logger calls 2015-03-05 11:32:18 +01:00
Cédric Krier 0ac0990c77 Improve logging
issue4458
review11781002
2015-03-02 23:39:15 +01:00
Cédric Krier 0991a552de Add TimeDelta field
And remove float_time widget.

issue4026
review5911002
2015-02-09 22:58:56 +01:00
Cédric Krier 1b0edb06c6 Cache.resets must be executed inside a Transaction
since changeset 01399128964f

issue4448
review13921002
2015-02-04 23:16:53 +01:00
Javier Villarroya bef0afaed6 Use getboolean for database list configuration
Otherwise the false value is still evaluated to true.

issue4404
review14781002
2014-12-16 21:34:29 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Fabián Calle 231a4a8826 Add translation for es_EC 2014-10-02 11:01:30 -05:00
Cédric Krier 278d6ee05a Fix restore of database
- Use a transaction to execute query
- Fix usage of update

issue3951
review14531002
2014-09-21 12:28:31 +02:00
Cédric Krier 790884f984 Fix typo in table name for ir.module
issue3951
review14531002
2014-09-21 12:27:55 +02:00
Cédric Krier a2c8111f26 Use context to check model and field access
* Model and Field access checked only if _check_access is set
* Add check_access to RPC
* Add check_access to Wizard and Report

issue4081
review8481002
2014-09-17 21:43:53 +02:00
Nicolas Évrard f7611654a6 Fix inverted boolean logic introduced in changeset 01399128964f 2014-09-08 17:51:13 +02:00
Cédric Krier 20dceeec9b Fix UnboundLocalError introduced in changeset 01399128964f 2014-09-06 23:39:19 +02:00
Cédric Krier e0b995abbe Refactore configuration to allow easy extention
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier bc29051ee6 XML-RPC dumps None to nil instead of bool
issue3981
review6351003
2014-06-13 19:08:32 +02:00
Cédric Krier 174b2ed218 Fix protocols and add unittest
review12371002
2014-06-07 23:54:44 +02:00
Cédric Krier 66d9aeb29f Fix and add missing registering type for json and xmlrpc
introduced in changeset ec4c234379ab
2014-06-07 01:04:46 +02:00
Nicolas Évrard d83fc99f35 Allow to register different type for json/xmlrpc encoding/decoding
issue3839
review5021003
2014-06-06 12:57:27 +02:00
Cédric Krier 80fc6aff30 Use copy of handlers set to prevent changed size during iteration 2014-04-04 23:38:21 +02:00
Cédric Krier 68127768cf Remove old backward Python <= 2.6 compatibility code 2014-04-04 23:34:56 +02:00
Cédric Krier 64421ff64f Manage microseconds in JSON-RPC and XML-RPC
review3551002
2014-03-15 10:36:20 +01:00
Cédric Krier bc6acd08ee Drop support of Python 2.6
review2691002
2014-01-31 00:02:03 +01:00
Cédric Krier c46a026c40 Refactore Transaction to add close and autocommit
review2151002
2013-12-18 18:09:43 +01:00
Cédric Krier 0088d66f43 Database.list must set manually the flavor
issue3508
review2121002
2013-12-06 11:28:48 +01:00