Commit Graph
60 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 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 9a59d09556 Add cache to safe_eval 2009-12-17 11:27:24 +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 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 2b866bfe7a Clean context before using it as a key for cache 2009-08-07 19:45:03 +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 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 65d0a9494b Update model documentation.
Use autodoc in sphinx
Add missing and fix docstring
2009-03-01 13:37:31 +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 1bb64df0ff Add tests module and tests for Modified Preorder Tree Traversal 2009-01-28 12:35:55 +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
Cédric Krier 7b6425722b Reset timeout when accessing cache value 2009-01-13 13:17:31 +01:00
Cédric Krier bf44fea46a Fix find_in_path to return the name if not found in path 2008-12-16 19:15:11 +01:00
Cédric Krier 3f88c95b78 Fix dead lock when reseting cache for issue673 2008-12-13 15:52:29 +01:00
Cédric Krier 97a4f7ef4e Add local cache and prefetch of datas for webdav speed improvement 2008-12-11 13:58:55 +01:00
Cédric Krier 2cda3c591e Improve Cache when function return None or False 2008-12-04 18:25:58 +01:00
Cédric Krier 9ff90ce067 Allow egg installation working 2008-11-18 17:40:30 +01:00
Brice V. 59dab0de13 Fix string type checking. An error occurs when cursor type is unicode and not str;
this happens when data retrieved from rpc gateways is unicode and not str.
2008-10-22 09:29:13 +02:00
Cédric Krier 21b01936b7 Use Lock instead of Semaphore
Use RLock for pooler
2008-10-14 00:12:46 +02:00
Cédric Krier 2b1aff1eeb Improve docstring of mod10r 2008-09-20 20:32:54 +02:00
Bertrand Chenal cb4971ac6e Logging refectoring:
* simplified mechanism

* reverted color on error, warning and critical messages in
  console. (inspired by openerp rev. 1085)
2008-09-12 19:57:33 +02:00
Cédric Krier f51249724a Translate sql error message 2008-08-28 19:07:25 +02:00
Cédric Krier 6e3b428c1b Standardize notify channel 2008-08-23 15:32:26 +02:00
Cédric Krier 41178c7730 Remove unusefull import of logging 2008-08-23 15:22:14 +02:00
Cédric Krier 4492cd5c90 Remove unused functions 2008-08-22 11:32:20 +02:00
Cédric Krier a7657cf223 Replace table cache_clean with ir_cache object
Add configuration option for multi-server
2008-08-10 18:51:12 +02:00
Cédric Krier 0232c66506 Fix COPYRIGHT 2008-06-23 20:18:54 +02:00
Cédric Krier a25ce9411b Use cStringIO everywhere when available for issue81 thanks htgoebel 2008-06-07 13:08:06 +02:00
Cédric Krier 8b6e3b8d77 Fix coding thanks to htgoebel 2008-06-07 12:58:28 +02:00
Cédric Krier dbb84dc988 Fix key in cache.
Must include self2 because there is only one instance of cache for all ORM
object
2008-04-28 11:42:58 +02:00
Cédric Krier 90b27f042e Add semaphore lock on cache access/modification 2008-04-27 15:53:42 +02:00
Cédric Krier e905b9c084 Add max len and timeout on cache functionnality
Cache is not usefull if there is no limit
2008-04-26 14:51:04 +02:00
Cédric Krier 0f4d0b6294 Make Cacheable object works also for many instances 2008-04-24 17:33:03 +02:00