Roland Haroutiounian
5738bb67cb
PEP8/Pylint on LeClass
hace 9 años
Roland Haroutiounian
32fe54e205
PEP8 / PyLint on datasources module
hace 9 años
Roland Haroutiounian
4bccea4cb6
Corrected a docstring
hace 9 años
Roland Haroutiounian
e3dba75747
[#61 ] Corrected the relational filters parsing method in LeDataSourceSQL
hace 9 años
Roland Haroutiounian
f2c721a9ae
[#61 ] Added the first implementation of update and delete functions
hace 9 años
Roland Haroutiounian
16e3b2c210
[#61 ] started the implementation of the update method in LeDataSourceSQL object
hace 9 años
Yann Weber
35c749c0f5
Add tests for LeType
hace 9 años
Yann Weber
052ddd4ce8
Bugfixes in lefactory and letype
Deleted the classinstancemethod decorator because of inheritance problems (not sure they were real...)
Add a shortcut method to LeFactory to get the generated LeObject class
+ bugfixes
hace 9 años
Yann Weber
e207076363
Add a check function for integer fieldtype and make some bugfix in LeType
hace 9 años
Yann Weber
ee578c1f89
Add another test for LeObject.get() method
hace 9 años
Yann Weber
965560bf6b
Add test for LeObject with a mock on the datasource + bugfix on _LeObject and LeType
hace 9 años
Roland Haroutiounian
ee89b62f40
[#61 ] added a default module setting to LeDataSourceSQL object
hace 9 años
Roland Haroutiounian
a27aba08f0
[#61 ] Added a first implementation of the insert method
hace 9 años
Yann Weber
f5e79bbac1
Fix bad argument in DummyDatasource
hace 9 años
Roland Haroutiounian
7bf9ceb7a3
[#61 ] pep8 correction
hace 9 años
Roland Haroutiounian
8bc93a67d5
[#61 ] First implementation of the get method in ledatasourcesql
hace 9 años
Roland Haroutiounian
dcd65f5f4c
[#61 ] Rewriting the method headers
hace 9 años
Yann Weber
25c7f607af
Implements delete() and update() methods in LeType and _LeObject
hace 9 años
Yann Weber
b257d6e16d
Add the two files for testing leobject package (that I forget to add in previous commit -_- )
hace 9 años
Yann Weber
ec033f63fb
Update the relationnal filters parse/storage and associated tests
hace 9 años
Yann Weber
46c98dc046
Updated the DummyDatasource + documenting query filters
hace 9 años
Yann Weber
a53f647810
Add insert method
hace 9 años
Roland Haroutiounian
8478fef37d
[#61 ] started the implementation of relational_filters in LeDataSourceSQL
hace 9 años
Yann Weber
1d29e95951
Add tests for LeObject + bufix
hace 9 años
Roland Haroutiounian
d826611811
[#61 ] Added the case of a non given relational_filters argument
hace 9 años
Roland Haroutiounian
50af1b16a8
[#61 ] Added the empty functions : update, insert, delete to the LeDataSourceSQL class
hace 9 años
Yann Weber
ff50f7ee64
_Leobject code factorisation
hace 9 años
Roland Haroutiounian
96fbc2f45e
[#61 ] changed params in the dummy data source class
hace 9 años
Roland Haroutiounian
e064173359
[#61 ] Corrected the headers of update and delete methods in dummy datasource
hace 9 años
Yann Weber
1c4e2ddba8
Some Doxygen comments fix
hace 9 años
Roland Haroutiounian
2fedc186da
[#61 ] Moved ledatasource into dummy
hace 9 años
Yann Weber
0be8db4d00
Complete the LeFactory generated code tests, add a __hash__ method for fieldtypes
hace 9 años
Roland Haroutiounian
3f8e5c9fce
[#61 ] Added the tablename generation
hace 9 años
Roland Haroutiounian
765a4e5830
[#61 ] Added the return as a dict in the get method of LeDataSource
hace 9 años
Roland Haroutiounian
89b13c5d91
[#61 ] Added the prepare_filters method
hace 9 años
Yann Weber
f029a95214
Add tests for LeFactory generated code
hace 9 años
Roland Haroutiounian
38675a63ab
[#61 ] Added the signatures of the LeDataSource methods
hace 9 años
Roland Haroutiounian
e98e024916
[#61 ] Started using mosql
hace 9 años
Roland Haroutiounian
a935446871
[#61 ] added the LeDataSourceSQL class
hace 9 años
Roland Haroutiounian
4f8c7a22bb
[#61 ] Added the prototype for the get method in LeDataSource class
hace 9 años
Roland Haroutiounian
a0f8196e05
[#61 ] Added the LeDataSource file
hace 9 años
Yann Weber
c48147e732
Correct the _LeObject.get() method and add some methods to LeType
Now the _LeObject.get() method should be able to return LeType child classes instance
LeType has two new methods :
- LeTypes.datas() @property method that returns a dict(FIELDNAME:FIELDVALUE)
- LeType.populate() that fetch from datassource missing fieldvalues
hace 9 años
Yann Weber
0f0a636eac
Add LeObject._me_uid dict populate in LeFactory + code factorisation
hace 9 años
Yann Weber
589d7f2eef
Changed the way LeFactory generates python code
Added a test on LeFactory generated code
hace 9 años
Yann Weber
250aa9e0ff
Add a class attribute to LeObject that maps EditorialModel uid with LeType and LeClass python class
hace 9 años
Yann Weber
756b0e0b0b
Test were broken by previous commit...
hace 9 años
Yann Weber
4d445e876e
_LeObject.get() enhancement
hace 9 años
Yann Weber
6123d23be4
Update the _LeObject.get() method to handle relationnal filters
hace 9 años
Yann Weber
2c37a9bf46
Update the quer_filter spliting method to handle superior.nature field notation.
Update the associated tests
hace 9 años
Yann Weber
0c51d6a483
Added some class property to LeFactory generated classes to avoid Model calls
hace 9 años