Commit Graph
18 Commits
Author SHA1 Message Date
Cédric Krier 1c55eee094 Manage DatabaseDataError in ModelSQL
issue11314
review399111003
2022-04-04 00:35:38 +02:00
Cédric Krier a0bfbfa255 Follow isort formatting
issue10928
2021-12-11 17:58:45 +01:00
Cédric Krier d7ed5f91f5 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:54 +01:00
Nicolas Évrard 8fb13634ea Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:47 +01:00
Nicolas Évrard 4085e589d6 Cache some performance sensible config values at the module level
issue8749
review284271002
2019-11-25 14:50:33 +01:00
Cédric Krier a6a7325f46 Remove deprecation warning
- remove invalid escape sequence
- use  read_file instead of read_fp
- use importlib instead of imp and __import__
- use callable instead of instance of collections.Callable
- fix silent file closing
- replace SafeConfigParser by ConfigParser
- replace decodestring by decodebytes
- replace encodestring by encodebytes

issue7666
issue7390
review53361004
2018-09-01 17:06:28 +02:00
Cédric Krier d2a461390a Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier 2b3a611057 Raise a better exception when backend doesn't exist
When the backend did not exist and pkg_resources was present, the exception
raise was a ValueError without meaningful information. Indeed it is better to
raise the import exception.

issue5418
review20101002
2016-03-25 10:43:07 +01:00
Cédric Krier e4c8f59b80 Allow to import backend from entry points
issue4841
review20301002
2015-07-09 15:40:21 +02:00
Cédric Krier 58b357b55f Improve config to be Python3 compatible
issue4662
review14131002
2015-03-22 03:20:53 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +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 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
Diego Mascialino 336329808c raise an error when CONFIG[db_type] is not supported
The postgresql backend was chosen as default,
now we raise an error when db_type is not supported


issue3226
review882003
2013-05-31 10:26:08 -03:00
Nicolas Évrard 6ba18631e8 Use relative imports 2011-12-14 17:00:13 +01:00
Cédric Krier cb63509356 Add MySQL backend 2010-02-25 16:43:04 +01:00
Cédric Krier 23c5eff184 Add sqlite backend 2009-07-07 19:35:44 +02:00
Cédric Krier e28edc4d99 Add model.fields
Use better naming of field attributes
2009-02-03 18:58:25 +01:00