Commit Graph
23 Commits
Author SHA1 Message Date
Cédric Krier e2318257bb Allow to extend Field string and help
Those attributes are stored as StringPartitioned and each part creates its own
translation record. The translated strings are constructed by concatenation of
each translated part.

issue8040
review46731002
2019-03-15 13:01:11 +01:00
Cédric Krier 39ea946edd Remove custom strftime for year before 1900
The bug has been fixed in Python 3.3

issue7814
review48671002
2018-10-31 18:15:57 +01:00
Cédric Krier d2a461390a Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier 2d1143fd26 Sanitize path in file_open against suffix
issue6361
review33191002
2017-04-03 18:23:41 +02:00
Sergi Almacellas Abellana 1029de47c6 Raise valueError when no date is supplied in datetime_strftime
issue6053
review31731002
2016-12-07 12:36:05 +01:00
Cédric Krier 8d3f8347cd Add test about sanitize path in file_open
issue5808
review28691002
2016-08-30 12:15:57 +02:00
Cédric Krier da1be07832 Make TestCase create and drop its database
and add with_transaction decorator.

issue5263
review20711002
2016-02-06 19:10:35 +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 bcd28ca071 Remove safe_eval
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.

issue4416
review6971002
2015-03-09 19:40:41 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier 4cf1624a91 Make decistmt a tool
issue4273
review9801002
2014-10-27 23:12:45 +01:00
Cédric Krier ccda215615 Prevent double underscore in safe_eval
CVE-2014-6633
issue4155
review5601002
2014-09-29 17:23:37 +02:00
Sergi Almacellas Abellana 4d1e2ba0c0 Use more fine grained exceptions on tests
issue3973
review8431002
2014-06-11 11:22:26 +02:00
Cédric Krier a6ffa18908 Add run-tests script and cleanup tests
issue2121
issue2420
review2491002
2014-01-12 19:58:22 +01: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 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 c0db64d412 Fix reduce_ids with integer as float
review233002
2012-01-28 12:46:09 +01:00
Nicolas Évrard 0a471486e0 correct pyflake errors
review164003
2011-11-02 15:49:38 +01:00
Nicolas Évrard 3ad685e892 Add function to get object base URL 2011-07-20 19:04:52 +02:00
Cédric Krier 981e3dca65 Fix reduce_domain to keep empty clause
review50005
2011-07-11 20:57:10 +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 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