Commit Graph
93 Commits
Author SHA1 Message Date
Cédric Krier a650e8469f Speed up pool setup
We split the operations into two steps, so we can do the setup calls at the end
if there is no installation or update.

issue5302
review17041002
2016-03-17 22:56:58 +01:00
Cédric Krier 6a60572576 Transaction needs to be committed before reseting the Cache
Cache.resets create a new transaction but SQLite keeps a lock from the previous
transaction is it was not committed.
This commit was removed by changeset 9b2e0aac2d9c

issue5388
review16071002
2016-03-16 22:07:46 +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
Sharoon Thomas 89de660c52 Move webdav into a separate module
issue4703
review7101002
2016-01-16 19:20:30 +01:00
Korbinian Preisler c849f0be8b Allow to import overridden translations from different po-file
issue4971
review18581002
2015-09-26 15:23:43 +02:00
Cédric Krier 7459aab3d1 Use CURRENT_TIMESTAMP instead of NOW
CURRENT_TIMESTAMP is the correct SQL standard way.

issue4837
review15531002
2015-07-01 19:41:49 +02:00
Cédric Krier 52ff97b165 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:02:01 +02:00
Cédric Krier 39e7eeeadb Add support for psycopg2cffi and PyPy
issue4408
review11741002
2015-03-15 15:52:03 +01:00
Cédric Krier 20484bb013 Fix formatting in logger calls 2015-03-05 11:32:18 +01:00
Cédric Krier 0ac0990c77 Improve logging
issue4458
review11781002
2015-03-02 23:39:15 +01:00
Guillem Barba 21ed4772e5 Recover uninstall modules feature
Manage case when state is 'to remove'.

issue322
review7881002
2015-01-16 10:21:52 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Robin Baumgartner e70973cac8 Remove workflow migration
issue4281
review13701002
2014-11-18 16:36:49 +01:00
Cédric Krier fb3eb72d16 Fix wrong is_module_to_install test introduced in changeset b0a271549ddd 2014-09-13 13:56:43 +02:00
Cédric Krier 7b3757f5a1 Merge update and init options and improve help message
- deprecates the init option
- replace the keyword "all" by an option "--all"
- rename debug into dev like in the client

issue4165
review7571003
2014-09-13 12:17:13 +02:00
Cédric Krier 34367b037c Missing initialisation of update parameter in load_module_graph
Since changeset 01399128964f, update must be a list of module to update.
2014-09-06 16:17:21 +02:00
Cédric Krier e0b995abbe Refactore configuration to allow easy extention
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier ab820aecf5 'res' should be global in load_modules
issue4045
2014-07-20 12:39:15 +02:00
Cédric Krier bc6acd08ee Drop support of Python 2.6
review2691002
2014-01-31 00:02:03 +01:00
Jean CAVALLO 90cf6b031d Properly calculate the module states when upgrading
issue3518
review1871002
2013-11-26 11:25:36 +01:00
Cédric Krier 41d2aa44ea Ignore "noupdate" attribute when installing a new module
issue2854
review631004
2013-09-20 00:36:00 +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
Albert Cervera i Areny b6f7d34397 Remove unnecessary stdout.flush().
There's no apparent need for the flush() call and it makes trytond crash when
stdout has been redirected.

issue3286
review974002
2013-07-12 16:49:51 +02:00
Cédric Krier 0c25656726 Correctly compute missing dependencies
review935002
2013-06-26 16:37:03 +02:00
Cédric Krier 5e01f5c068 Fix flake8 2013-02-27 22:50:31 +01:00
Cédric Krier e30c4e51a1 Fix wrong instantiation when removing module
issue3025
review689002
2013-02-26 13:03:31 +01:00
Laurent Defert d06955421c Remove deprecated reports initialization
Remove code that used to initialize reports with undefined classes.
This initialization is done from Pool.get() method instead.

issue2933
review611004
2012-12-18 15:40:33 +01:00
Cédric Krier f7b8ad485e Factorize load of module
The test for register on module should be done also on egg modules.

issue2853
review586002
2012-10-24 23:38:12 +02:00
Cédric Krier 4c223a2b64 Fix delete to use list of instance
issue2821
2012-10-10 11:29:46 +02:00
Jean CAVALLO feef05415e Improved error management in module registering
A try in the register_classes method which was supposed to detect
the absence of the register method could hide errors in the
__init__ file of the module and silently go on.

issue 2806
revision545002
2012-10-10 10:55:53 +02:00
Cédric Krier 0fe1b93864 Active Record 2012-09-24 22:16:53 +02:00
Cédric Krier 7f2b4a30dc Fix installation of modules that are not yet in the database
review479002
2012-08-23 23:22:48 +02:00
Cédric Krier a09d9a54a1 Simplify module information with python configuration
review363001
2012-06-08 19:32:23 +02:00
Cédric Krier 8c7edb3394 Don't alter CONFIG to init/update children modules 2012-06-08 18:56:52 +02:00
Cédric Krier edce92263b Fix missing update of depending modules 2012-06-02 13:51:37 +02:00
Cédric Krier ee3be37a36 Fix pep8 and pyflakes 2012-04-01 23:08:15 +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 423983c5de Speed up bootstrap of the server (and remove sql import)
review292001
2012-03-20 17:50:17 +01:00
Cédric Krier 1b0a713dad New autoreload that restarts the server instead of reloading modules
issue2417
review283001
2012-03-12 22:27:59 +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 0c95a2da8a Add extras_depend to module definition
review217001
2012-01-22 00:07:15 +01:00
Nicolas Évrard 0a471486e0 correct pyflake errors
review164003
2011-11-02 15:49:38 +01:00
Cédric Krier 038dc31978 Let's pofile detect the encoding
issue2175
review141001
2011-10-10 18:36:40 +02:00
Nicolas Évrard c6174a0b61 replace .csv file by .po file for translations
review125002
issue1163
2011-10-04 13:03:06 +02:00
Nicolas Évrard 433174afbc Allow to put languages file in a subfolder 2011-09-27 18:32:40 +02:00
Cédric Krier 852f04dc51 Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:16:15 +02:00
Cédric Krier 6a828d81ad Don't use anymore .zip file as module 2011-05-27 23:21:57 +02:00
Cédric Krier 1655c56c82 Remove support of zipped modules 2011-05-26 15:21:15 +02:00