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
Nicolas Évrard
2fef479575
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier
87f9fbea6e
Add test for all field methods
...
The test check if all defined field methods are linked to an existing field.
issue4991
review23441002
2015-10-01 22:37:13 +02: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
Cédric Krier
38b59e0329
Remove Pool.object_name_list
...
This method is inefficient for testing existence of an item, it is better to
ask for forgiveness.
review12761002
2014-12-16 22:02:44 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
93deeeced8
Allow to use easily unicode_literals
...
Transparently encode __name__ to utf-8 to allow usage of unicode_literals
Fix PYSON to support unicode
issue4294
review11601002
2014-11-10 23:30:49 +01:00
Cédric Krier
e0b995abbe
Refactore configuration to allow easy extention
...
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier
8710f2fd99
Fix Pool.setup to re-allow extra_depends behavior
...
review898002
2013-05-27 18:47:00 +02:00
Pierre-Louis Bonicoli
1f23223962
Don't hide AttributeError which could occur in model.__setup__
...
review895002
2013-05-23 11:31:56 +02:00
Cédric Krier
fc24d4ade0
Don't reset pool if already init in the meanwhile
...
review553004
2012-10-15 22:59:48 +02:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
c4e45d471c
database_list must return only fully loaded pool
...
review305001
2012-03-25 15:46:56 +02: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
Craig Barnes
f1d141d4bc
Disable cron for new database during initialisation
...
During database creation CRON error can be observed in the error log.
In slower machines the timing of the errors can cause a deadlock state as
the database is added to the cron while the cron tables are being initialised.
This leaves the database in an inconsistent and unusable state for the user.
To correct this I have exposed the pool lock by adding a lock property, and
required the server to acquire a lock on the database pool before it can start a
thread for it.
issue2234
review173001
2011-11-13 21:29:09 +00:00
Cédric Krier
02e5fb58c0
Fix close Pool if database was not used
2011-09-19 14:49:56 +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
550aae8351
Change Pool into a Singleton
...
review42001
2011-07-03 13:20:58 +02:00
Robin Baumgartner
59ebfc1e8f
Generate missing report definitions on the fly
...
issue2075
review51001
2011-06-23 19:00:05 +02:00
Cédric Krier
483afed26a
Catch only Exception according to PEP 352
2010-07-08 19:53:39 +02: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
b5fb4d1ef3
Refactoring by validation with pylint
2010-02-18 18:50:35 +01:00
Cédric Krier
5832d1cca7
Improve pool restart if exception occurs in register_classes
2010-01-22 11:43:32 +01:00
Cédric Krier
1be5fa9499
Add stop Pool and use it when dropping database
2009-08-25 15:37:11 +02:00
Cédric Krier
9d5edc345d
Add clean cache when xxx2many targets change
2009-08-20 14:41:00 +02:00
Cédric Krier
c81c4f99a8
Add reload of modules if files have changed
2009-08-07 10:42:23 +02:00
Cédric Krier
a352575ef0
Catch _sql_constraints and _sql_error_messages in ModelSQL instead of
...
dispatcher
2009-04-07 18:59:00 +02:00
Cédric Krier
7caf87547d
Don't reset _sql_errors on __init__ of Pool
2009-04-02 11:22:27 +02:00
Cédric Krier
3471a35d7e
Add logging info when init pool for issue778
2009-02-13 13:36:40 +01:00
Cédric Krier
d106175172
Add missing type in Pool.get for issue774
2009-02-11 18:28:12 +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