Cédric Krier
d2a461390a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier
473ac78eb4
Add exceptional parent language
...
issue6956
review40821003
2017-11-25 22:00:24 +01:00
Sergi Almacellas Abellana
e702a4368e
Correctly import get_smtp_server on misc tools
...
issue6914
review40801002
2017-11-07 09:27:53 +01:00
Sergi Almacellas Abellana
010043fbe0
Ensure egg modules path is absolute
...
Paths defined on sys.path may contain a relative path, so it must
be converted to absoulte path otherwise the starting comparison will
fail
issue6607
review39471002
2017-07-03 18:13:27 +02:00
Cédric Krier
2d1143fd26
Sanitize path in file_open against suffix
...
issue6361
review33191002
2017-04-03 18:23:41 +02:00
Cédric Krier
d305c26e54
Add support for derivative translations
...
This is done by calling first the getter method for the parent language for the
terms that are not yet cached. After existing translations are set for the
language. And finally the result is stored in the cache.
The synchronisation wizard remove also the translations that are identical to
their parent language.
The method load_module_graph adds all parent languages to be loaded for
derivation.
issue5443
review25581002
2016-09-10 23:25:03 +02:00
Cédric Krier
f4e14d65cc
Sanitize path in file_open
...
file_open did not prevent to use up-level reference in file name.
A forged Report name could be used to open file outside the trytond root.
CVE-2016-1242
issue5808
review28691002
2016-08-30 12:15:25 +02:00
Cédric Krier
8d5c562740
Remove unused tools
...
issue5811
review27581002
2016-08-23 18:45:26 +02:00
Cédric Krier
065d1b7bb6
Add filestore module
...
Replace custom Attachment setter/getter by a generic module that can be used by
others.
issue5686
review22141003
2016-07-29 10:46:52 +02:00
Cédric Krier
ba1faa1a76
Add sendmail datamanager
...
issue5431
review17981002
2016-03-28 22:40:37 +02:00
Cédric Krier
a94627b160
Remove LocalDict from tools
...
issue5364
review21781002
2016-03-05 17:31:25 +01:00
Nicolas Évrard
2fef479575
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier
70827fe06b
XML files must be open in binary mode for sax parser
...
The sax parser expect a byte stream, so we must open the file with the binary
mode. Also file_open should have a default encoding to None because encoding
should not be set in binary mode.
issue5313
2016-02-09 22:45:44 +01:00
Cédric Krier
8eeb0140ed
Add encoding to file_open
...
For Python3, we must define the encoding when opening a file.
issue5313
review21671002
2016-02-09 21:04:39 +01:00
Cédric Krier
29129855ec
Add support for Python 3
...
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Sharoon Thomas
89de660c52
Move webdav into a separate module
...
issue4703
review7101002
2016-01-16 19:20:30 +01:00
Cédric Krier
ad0189bb56
Avoid circular import between Transaction and tools
...
issue4724
review12161002
2015-06-01 22:47:08 +02:00
Cédric Krier
87ea42c126
Unquote username and password from URI
...
issue4747
review7131002
2015-05-19 09:48:07 +02:00
Cédric Krier
18808832d7
Add missing import of types in tools/misc.py
...
issue3211
2015-03-18 23:36:24 +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
ccda215615
Prevent double underscore in safe_eval
...
CVE-2014-6633
issue4155
review5601002
2014-09-29 17:23:37 +02:00
Cédric Krier
e0b995abbe
Refactore configuration to allow easy extention
...
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Sergi Almacellas Abellana
fd7c510ce4
Add grouped_slice helper and use it.
...
issue3516
review10301002
2014-07-17 18:53:05 +02:00
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