Commit Graph
94 Commits
Author SHA1 Message Date
Cédric Krier 0fe1b93864 Active Record 2012-09-24 22:16:53 +02:00
Cédric Krier 6858187fc8 Add dynamic size limit on the One2Many, Many2Many and Char
review396001
2012-06-20 18:12:40 +02:00
Cédric Krier a09d9a54a1 Simplify module information with python configuration
review363001
2012-06-08 19:32:23 +02:00
Cédric Krier c6aa87cfca Remove not null from res_id of ir.translation in init.sql 2012-05-07 18:39:43 +02:00
Cédric Krier 3c49120885 Remove default value in init.sql
review356001
2012-05-07 13:58:26 +02:00
Cédric Krier ee3be37a36 Fix pep8 and pyflakes 2012-04-01 23:08:15 +02:00
Cédric Krier be0e5c54a9 Simplify workflow engine
- Remove workflow module
- Add ir.model.button for access rights

review256001
2012-03-25 00:15:17 +01:00
Cédric Krier 7d457f46c4 Store session in database
review210012
2012-01-11 20:30:27 +01:00
Cédric Krier 8b33421403 Use XML-RPC struct for Decimal and Date
review191006
2011-12-22 22:17:08 +01:00
Nicolas Évrard 6ba18631e8 Use relative imports 2011-12-14 17:00:13 +01:00
Nicolas Évrard 0a471486e0 correct pyflake errors
review164003
2011-11-02 15:49:38 +01:00
Cédric Krier ec4c38b84a Switch from SERIALIZABLE to REPEATABLE_READ isolation level of PostgreSQL
Until before PostgreSQL 9.1 serializable was the same as repeatable read.
As we use explicit locking, repeatable read is enough.

review151006
2011-10-17 09:47:26 +02:00
Pierre-Louis Bonicoli f35f3ec546 Put quotes around sequence names
Identifiers are quoted in trytond/backend/postgresql/table.py,
sequence names must be quoted too (see
http://www.postgresql.org/docs/8.4/static/functions-sequence.html)

issue2176
review141002
2011-10-12 15:44:00 +02:00
Nicolas Évrard 66717ae533 Version number should be tuple for postgresl has_returning 2011-10-05 18:29:30 +02:00
Cédric Krier 246d18d67f Fix comparison of indexes
On MySQL the max length is 64
On PostgreSQL the max length is a build option, so we use the max length of the
known indexes

review116002
2011-09-28 18:09:30 +02:00
Cédric Krier 1ab6964687 Add readonly on Transaction
review80005
2011-08-21 11:05:51 +02:00
Cédric Krier 0f3ba1f69f Use RETURNING in INSERT if available
review21003
2011-08-21 10:20:23 +02:00
Nicolas Évrard e09070dda0 Use function name in workflow instead of python code 2011-08-11 15:54:36 +02:00
Cédric Krier 852f04dc51 Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:16:15 +02:00
Cédric Krier 7a7e89bb10 Remove support of Many2Many field in record XML
issue1994
review35005
2011-07-03 18:01:47 +02:00
Cédric Krier 54e6a8c2fe Use md5 hash for indexing translation for issue1898 2011-04-09 12:36:01 +02:00
Cédric Krier c5c449e1a0 Fix migration speed of dates from timestamp(0) to timestamp(6) 2011-02-16 16:03:51 +01:00
Cédric Krier 8687b8914d Handle closing of file objects 2011-01-08 20:29:00 +01:00
Cédric Krier 9bfc2b93e1 Add adapter for Float in PostgreSQL backend for issue1707 2010-10-03 18:42:58 +02:00
Cédric Krier a5cbd5264f Old versions of psycopg2 don't have PYDATE, PYDATETIME and PYTIME 2010-09-26 10:47:37 +02:00
Cédric Krier 7314ffc54d Fix when psycopg is compiled with mxdatetime option for issue1698 2010-09-25 16:32:17 +02:00
Cédric Krier df1fd283ac New transaction management
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00
Cédric Krier c4b9b9e6c4 Fix typo in test query for PostgreSQL and SQLite thanks to Ralf Peschke 2010-07-11 15:29:29 +02:00
Cédric Krier 483afed26a Catch only Exception according to PEP 352 2010-07-08 19:53:39 +02:00
Cédric Krier 8951e54c86 Add decimal digits validation on fields and fix Float and Numeric for lost of precision 2010-03-11 15:27:40 +01:00
Cédric Krier cb63509356 Add MySQL backend 2010-02-25 16:43:04 +01:00
Cédric Krier 46cbcdc62e Use open instead of file to follow recommendation of Python doc 2010-02-22 23:16:14 +01:00
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +01:00
Cédric Krier 6961c5c925 Fix typo 2010-02-08 09:36:32 +01:00
Cédric Krier ac9c532f41 Fix wrong initialisation type of _indexes in TableHandler of PostgreSQL
backend
2010-02-08 09:36:10 +01:00
Cédric Krier 6aec5c64ab Don't put "OFFSET 0" for PostgreSQL backend
"OFFSET 0" adds a limit operation in query plan
2010-02-03 15:25:57 +01:00
Cédric Krier bbe480fa21 Use list comprehensions for dictfetch* function of Cursor 2010-01-20 15:28:09 +01:00
Cédric Krier 5c61502db0 Update init.sql according to models and guidlines 2010-01-16 14:28:40 +01:00
Cédric Krier d68ec64069 Use column starting with "_" in alter_size to prevent naming collision 2010-01-16 14:25:05 +01:00
Cédric Krier 1a8c6f2213 Add comment on table and field for postgresql backend 2010-01-11 12:32:50 +01:00
Cédric Krier e2f80d378c Add timestamp field in backend
Improve validation of DateTime values
2009-11-10 14:00:13 +01:00
Cédric Krier 74eee1cd20 Refactor backend fields 2009-10-31 19:33:45 +01:00
Cédric Krier 4340747f28 Fix when using unicode in Sha field 2009-10-31 15:54:59 +01:00
Cédric Krier b427d21224 Add new tool safe_eval 2009-09-28 11:21:11 +02:00
Bertrand Chenal 7834e3849a Handle sequence and history renaming when renaming table 2009-09-16 14:47:06 +02:00
Bertrand Chenal 36efc47a44 Allow to drop constraint, index and foreign key with custom table name 2009-09-10 14:19:10 +02:00
Bertrand Chenal fd3493ec06 Added column renaming on db backends 2009-09-10 14:09:59 +02:00
Cédric Krier 3cf4f4a7e3 Add limit_clause function on cursor 2009-09-07 15:18:17 +02:00
Cédric Krier 2372e64abd Fix call to exec_pg_command_pipe to wait the end of the command 2009-09-02 17:38:06 +02:00
Cédric Krier 03cb043c78 Add a cache to Database.list for PostgreSQL 2009-08-25 16:58:09 +02:00