Commit Graph
175 Commits
Author SHA1 Message Date
Cédric Krier d4d7c57f86 Add JUMP_IF_FALSE_OR_POP opcode for Unladen Swallow 2010-03-17 22:16:25 +01:00
Cédric Krier 2e2227d795 Improve search on translatable fields for issue1442 2010-03-17 11:50:52 +01:00
Cédric Krier 9eedc60aa0 Improve unittest to run test_suite inside setuptools 2010-03-12 17:47:49 +01: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 20741b613d Improve unittests to run trytond from tests
Use sqlite as default backend
Add skiptest attribute to data tag
Add option to test_tryton to run tests from all modules
2010-03-04 14:02:27 +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 dbd73db28b Fix exec_pg_command_pipe to work on windows for issue1405 2010-02-03 17:36:44 +01:00
Bertrand Chenal 6f5ca8b54a Add LRU memoization, use it to cache compiled code for safe_eval 2010-01-21 10:16:31 +01:00
Cédric Krier 84d5b669f5 Fix reduce_ids with empty list 2009-12-21 16:09:18 +01:00
Cédric Krier cae0a76a3d Remove egenix-mx-base and replace it by python-dateutil 2009-12-17 11:39:54 +01:00
Cédric Krier 9a59d09556 Add cache to safe_eval 2009-12-17 11:27:24 +01:00
Cédric Krier 53489ba4e4 Add noupdate boolean on ir.model.data
Don't update translation for records that have noupdate for issue1273
2009-11-05 14:09:04 +01:00
Cédric Krier ddbd7b2be1 Don't use now() in SQL statement as it doesn't work on SQLite 2009-11-03 15:22:17 +01:00
Cédric Krier b427d21224 Add new tool safe_eval 2009-09-28 11:21:11 +02:00
Bertrand Chenal dab3db6112 Improved email support 2009-09-23 14:47:14 +02:00
Cédric Krier ab8cc7268b Use cast into int for range to prevent warning 2009-09-22 16:45:23 +02:00
Cédric Krier 536fd48e6a Don't change kwargs in Cache 2009-09-14 18:10:37 +02:00
Cédric Krier 1259ee9668 Add new tool reduce_ids 2009-09-08 13:03:57 +02:00
Cédric Krier 3cf4f4a7e3 Add limit_clause function on cursor 2009-09-07 15:18:17 +02:00
Cédric Krier b00bafcbf1 Add missing module clause when searching translation for new record 2009-09-07 12:59:02 +02:00
Cédric Krier 8f46463b4a Reset BrowseRecord also after update to keep cache memory low.
There is little chance to see again this record in the XML files of the module.
2009-09-04 09:50:51 +02:00
Cédric Krier 4cbe2de72c Order BrowseRecordList by id.
We have more chance to see records in this order in the XML files.
2009-09-04 09:48:13 +02:00
Cédric Krier f3406a13e4 Clean cursor cache when reseting BrowseRecord 2009-09-04 09:46:58 +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 b46c5fd424 Guidelines 2009-08-28 15:01:15 +02:00
Cédric Krier 2b866bfe7a Clean context before using it as a key for cache 2009-08-07 19:45:03 +02:00
Bertrand Chenal 30f2f5885a Removed unused code 2009-07-07 22:29:11 +02:00
Cédric Krier bd02e85cee Don't use hardcoded true/false in SQL queries to be more database independant 2009-07-07 19:22:56 +02:00
Cédric Krier a359c7c0a2 Fix the use of rowcount because it can return -1 or None according to PEP249 2009-07-07 19:14:51 +02:00
Cédric Krier e6d8f7343b Use IN_MAX in fetch_new_module 2009-07-06 12:47:17 +02:00
Cédric Krier b8402de921 Fix internal variable name for Cache and Cacheable for issue1076 2009-06-07 00:09:27 +02:00
Cédric Krier c4cb35c305 Use _name for Cache instead of name to work with Cacheable for issue1076 2009-06-06 22:42:06 +02:00
Cédric Krier eea0a0a24d Fix guidelines 2009-05-23 15:44:36 +02:00
Johannes Bornhold 9e47032635 Added support for environment variable "PGPASSWORD" when calling pg_dump for issue1058 2009-05-23 08:37:28 +02:00
Cédric Krier b88be55b18 Improve xml loading for override of records that don't exist 2009-04-12 18:31:41 +02:00
Cédric Krier 2c3ab4db87 Remove str on exception and use traceback.format_exception for issue909 2009-03-29 17:38:54 +02:00
Cédric Krier e718ac4f47 Set default values on RecordTagHandler 2009-03-14 19:09:12 +01:00
Cédric Krier eed55d0589 Fill and update browserecord cache when creating or updating record to allow
to use it on record with the same id and update="1"
2009-03-05 11:43:59 +01:00
Cédric Krier 65d0a9494b Update model documentation.
Use autodoc in sphinx
Add missing and fix docstring
2009-03-01 13:37:31 +01:00
Bertrand Chenal 8c9bb885fc Removed workflow_trigger_write on wrong model. Fix for issue807. 2009-02-23 21:31:14 +01:00
Cédric Krier 2d6a8d0046 Use better logger name 2009-02-12 18:53:01 +01:00
Cédric Krier b75d10cd20 Use a new pool for object
Move workflow method in ModelWorkflow
Move workflow service in workflow module
Remove Service and LocalService
Remove web_service and use a dispatcher in protocols
New netrpc/xmlrpc syntax to be easier to introspect
2009-02-11 14:52:22 +01:00
Cédric Krier e28edc4d99 Add model.fields
Use better naming of field attributes
2009-02-03 18:58:25 +01:00
Cédric Krier 4e2dc61df9 Remove unused import 2009-02-02 09:23:05 +01:00
Cédric Krier 1bb64df0ff Add tests module and tests for Modified Preorder Tree Traversal 2009-01-28 12:35:55 +01:00
Cédric Krier b89264ab8b Use default value from base model before of inherit model for xml import 2009-01-25 01:36:25 +01:00
Bertrand Chenal e803fa7461 Xml import: Use a set instead of a list to store all the ids. 2009-01-25 00:47:59 +01:00
Bertrand Chenal 406692ab69 xml import: Fetch the correct default value when a field belongs to
the parent model of the record.
2009-01-25 00:47:00 +01:00
Cédric Krier 73a256f5b4 Use repr to convert key instead of str in the case of key is an unicode 2009-01-13 13:50:19 +01:00