Cédric Krier
9e20959e50
Use array optimisation of python-sql 0.2
...
review1057003
2013-09-18 23:11:09 +02:00
Cédric Krier
ab74123eb2
Merge test/ into tests/
...
review1060002
2013-09-16 11:38:11 +02:00
Cédric Krier
fc6c6cfdda
Migration to python-sql
...
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method
review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier
531f4f0e22
Fix encoding of __file__ for windows
...
review816002
2013-04-27 12:01:43 +02:00
Cédric Krier
5e01f5c068
Fix flake8
2013-02-27 22:50:31 +01:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Cédric Krier
25839451d2
Prevent rule to fail when evaluating values
...
issue2519
review312003
2012-03-30 14:30:07 +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
c0db64d412
Fix reduce_ids with integer as float
...
review233002
2012-01-28 12:46:09 +01:00
Cédric Krier
a94ceb4321
Add default database language code
...
The configuration option defines which translated value will be stored in the
main field.
The methods of ir.translation which were already publicly used are now public.
Setting the main translation mark translations of other languages fuzzy.
review198001
2012-01-27 21:11:06 +01:00
Cédric Krier
e70183b64a
Add allowed ops in safe_eval for Python 2.7
2011-11-14 18:00:46 +01:00
Nicolas Évrard
0a471486e0
correct pyflake errors
...
review164003
2011-11-02 15:49:38 +01:00
Cédric Krier
981e3dca65
Fix reduce_domain to keep empty clause
...
review50005
2011-07-11 20:57:10 +02:00
Cédric Krier
1655c56c82
Remove support of zipped modules
2011-05-26 15:21:15 +02:00
Cédric Krier
d174df442b
Search for zip file not above of root_path
2011-05-23 17:03:08 +02:00
Cédric Krier
65a3f3f837
Reduce domain before applying active rule for issue1796
2011-01-28 10:34:43 +01:00
Cédric Krier
aa5816be0f
Move Cache in trytond.cache and convert outside tools for issue1653
2010-08-24 20:54:27 +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
483afed26a
Catch only Exception according to PEP 352
2010-07-08 19:53:39 +02:00
Cédric Krier
9678c0f10c
Try to find file in sys.path before using dirname of ep.dist.location
2010-05-09 11:04:18 +02:00
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