Yann Weber
01566ca815
Exception msg enhancement + use of method instead of protected attr in datasource
vor 8 Jahren
Roland Haroutiounian
6a6396f0d2
Bug fix
vor 8 Jahren
Yann Weber
1f1e6f13b3
Add a new get_class_childs to Model class and a child_classes method to LeObject
Now lefactory populate a LeObject attribute named _child_classes
vor 8 Jahren
Yann Weber
6e89fca151
The automatic UID creation by datasource implementation implies somes changes :
The UniqID datahandler has to call the datasource
LeObject has to be able to determine wich parent class define its UID datahandler
[NOT IMPLEMENTED] the datasource should be able to select with an abstract LeObject as target ( see #92 )
vor 8 Jahren
Yann Weber
e3dbdc8e49
Untested but written db initialisation function in install/lodel_admin.py
vor 8 Jahren
Yann Weber
4c90b68fda
Bugfix and better exceptions handling in datasource initialization methods
vor 8 Jahren
Yann Weber
2da4b82770
Continue to split _init_datasource method of LeObject
vor 8 Jahren
Yann Weber
9b3087b363
Continue to prepare MigrationHandler database initialization script
vor 8 Jahren
Yann Weber
5ba8fd8e7f
em_test update + DataHandler bugfix & enhancement
vor 8 Jahren
Yann Weber
d12d1e2865
Bugfixes in query.py and leobject.py + more test on Query <-> Datasource relations
vor 8 Jahren
prieto
db835cd61e
Debug 15/06
vor 8 Jahren
Yann Weber
1ea9269742
Small bugfixes in leobject and validator
- Replaced a self. by cls. in leobject
- Changed default value for runtest option
vor 8 Jahren
Yann Weber
33b9ad84c6
Tests + bugfix on LeObject.get method
- Changed the way of instanciating results object in get (using __new__ )
vor 8 Jahren
Yann Weber
4e504f759e
Bufix on LeObject.update + test
vor 8 Jahren
Yann Weber
96f736ae16
Bufixes making test pass
vor 8 Jahren
prieto
7c5ebc3035
self.__namein delete
vor 8 Jahren
prieto
c3e62e57be
Corrections
vor 8 Jahren
Yann Weber
9c23abcdcc
Bugfixes on leobject & query
vor 8 Jahren
prieto
669ec976a4
Corrections __init
vor 8 Jahren
prieto
53ad4dcbc0
Adding import warnings
vor 8 Jahren
Yann Weber
378dfd9766
More test + change 1 exception in LeObject
vor 8 Jahren
Yann Weber
7f2246756d
Exceptions enhancement in LeObject
vor 8 Jahren
prieto
45f09240f7
Coorecting error by passing cls to query
vor 8 Jahren
prieto
a4dd1950e2
Name of exceptions
vor 8 Jahren
prieto
521f81728d
Correction raise LeApiErrors
vor 8 Jahren
prieto
d5f0f9fd16
Corrections of a method name
vor 8 Jahren
Yann Weber
976d0c90c8
First tests on LeObjects
vor 8 Jahren
prieto
8bee875d27
Method load
vor 8 Jahren
Yann Weber
9a82936fbf
Datasources plugins enhancement and loading bugfixes
- now we have a LodelHook to trigger migration handlers loading
- datasources initialization in dyncode is now trigger by a hook (lodel2_plugin_loaded)
- datasources loading by dyncode is better
vor 8 Jahren
prieto
30b939f158
New load method
vor 8 Jahren
Yann Weber
9da19f3665
Moved exceptions + LeUpdateQuery.__query implementation
- The LeUpdateQuery implementation is broken or at least have huge performance issue
- Moved LeObject exceptions and LeQuery exceptions in lodel.leapi.exceptions
vor 8 Jahren
prieto
021a99fd1f
A small correction
vor 8 Jahren
prieto
7c3ca2acd8
Added links with LeQuery
vor 8 Jahren
Yann Weber
e9f17eab6e
Fixes #79 (and brokes tests of xml translator)
Adding a field to all non abstract classes to store in DB the name of corresponding LeObject subclass
vor 8 Jahren
Yann Weber
77e7c36de9
Not fully tested. Enables separated datasources for read only or read&write access to the DB
vor 8 Jahren
Yann Weber
e55954d947
First test on multi datasource queries + em_test update + query.py debug
- Modified again the em_test to fit with testing purpose
- First test on multi datasource query written
- debugging of query.py
vor 8 Jahren
Yann Weber
616acd387d
Modified LeObject adding a _datasource_name attribute
The _datasource_name attribute replace the old _datasource attribute. The goal of the modification is to maintain easyly accessible datasource UID
vor 8 Jahren
Yann Weber
61f19772fb
New way to handles plugin
- renamed Plugins class to Plugin
- an instance represent a loaded plugin
- classmethod allows to preload & load plugins
vor 8 Jahren
prieto
664a591a87
Correction functions set_datas and data
vor 8 Jahren
prieto
9080d53f2f
Correction : self.__datas[fieldame] en sel.__datas[fieldname] line 116
vor 8 Jahren
Yann Weber
065912cc66
Bugfix in LeObject._datasource bootstraping
- now _datasource attr contains an instance of the datasource, instanciated with options given in conf file
vor 8 Jahren
Yann Weber
b683d68d83
Adding datasourc boostrapîng instructions in leaftory generated dyncode
+ better log message for datasource bootstrap
vor 8 Jahren
Yann Weber
84717328e3
Enhancement in datasources plugins handling
- now datasources are handled in LeObject child classes
- plugins module now have a method to retrieve a plugin module
vor 8 Jahren
Yann Weber
a7c69629e7
Introducing a datasource attribute by em_class
vor 8 Jahren
Yann Weber
be8084b4fb
Small bugfix in LeObject
vor 8 Jahren
Yann Weber
76f002d06c
Bugfixes in leobject and queries classes
vor 8 Jahren
Yann Weber
251fc6d324
Add some utility function + addition in query.py
vor 8 Jahren
Yann Weber
61dd475e8c
Query refactoring
vor 8 Jahren
Yann Weber
c5971d9590
Updated comments (and deleting space between ## and @brief )
vor 8 Jahren
Yann Weber
2c47c71116
Modification in backreference handling.
Now a backreference is represented by a tuple(LeObject child class, fieldname)
vor 8 Jahren