Yann Weber
25c7f607af
Implements delete() and update() methods in LeType and _LeObject
il y a 9 ans
Yann Weber
c2ce3e3717
And another file I forgeted
il y a 9 ans
Yann Weber
b257d6e16d
Add the two files for testing leobject package (that I forget to add in previous commit -_- )
il y a 9 ans
Yann Weber
ec033f63fb
Update the relationnal filters parse/storage and associated tests
il y a 9 ans
Yann Weber
46c98dc046
Updated the DummyDatasource + documenting query filters
il y a 9 ans
Yann Weber
a53f647810
Add insert method
il y a 9 ans
Roland Haroutiounian
8478fef37d
[#61 ] started the implementation of relational_filters in LeDataSourceSQL
il y a 9 ans
Yann Weber
1d29e95951
Add tests for LeObject + bufix
il y a 9 ans
Roland Haroutiounian
d826611811
[#61 ] Added the case of a non given relational_filters argument
il y a 9 ans
Roland Haroutiounian
50af1b16a8
[#61 ] Added the empty functions : update, insert, delete to the LeDataSourceSQL class
il y a 9 ans
Roland Haroutiounian
8d3760f98d
[#61 ] Corrected the ftype in the bool fieldtype
il y a 9 ans
Yann Weber
ff50f7ee64
_Leobject code factorisation
il y a 9 ans
Roland Haroutiounian
96fbc2f45e
[#61 ] changed params in the dummy data source class
il y a 9 ans
Roland Haroutiounian
e064173359
[#61 ] Corrected the headers of update and delete methods in dummy datasource
il y a 9 ans
Yann Weber
1c4e2ddba8
Some Doxygen comments fix
il y a 9 ans
Roland Haroutiounian
2fedc186da
[#61 ] Moved ledatasource into dummy
il y a 9 ans
Yann Weber
0be8db4d00
Complete the LeFactory generated code tests, add a __hash__ method for fieldtypes
il y a 9 ans
Roland Haroutiounian
3f8e5c9fce
[#61 ] Added the tablename generation
il y a 9 ans
Roland Haroutiounian
40d8680c56
Merge branch 't61'
il y a 9 ans
Roland Haroutiounian
765a4e5830
[#61 ] Added the return as a dict in the get method of LeDataSource
il y a 9 ans
Roland Haroutiounian
89b13c5d91
[#61 ] Added the prepare_filters method
il y a 9 ans
Yann Weber
f029a95214
Add tests for LeFactory generated code
il y a 9 ans
Roland Haroutiounian
961dfe1ea3
Merge branch 't61'
il y a 9 ans
Roland Haroutiounian
38675a63ab
[#61 ] Added the signatures of the LeDataSource methods
il y a 9 ans
Roland Haroutiounian
e98e024916
[#61 ] Started using mosql
il y a 9 ans
Roland Haroutiounian
a935446871
[#61 ] added the LeDataSourceSQL class
il y a 9 ans
Roland Haroutiounian
4f8c7a22bb
[#61 ] Added the prototype for the get method in LeDataSource class
il y a 9 ans
Roland Haroutiounian
a0f8196e05
[#61 ] Added the LeDataSource file
il y a 9 ans
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
il y a 9 ans
Yann Weber
0f0a636eac
Add LeObject._me_uid dict populate in LeFactory + code factorisation
il y a 9 ans
Yann Weber
76782b1b5b
BugFix in Model tests
An old string was given as argument to DummyMigrationHandler and was interpreted as debug = True
il y a 9 ans
Yann Weber
589d7f2eef
Changed the way LeFactory generates python code
Added a test on LeFactory generated code
il y a 9 ans
Yann Weber
baeff1f7e6
Implements the EmClass::linked_type() method and add 2 new property method to EmField : em_class and fieldgroup
Associated tests has been added/updated
il y a 9 ans
Yann Weber
250aa9e0ff
Add a class attribute to LeObject that maps EditorialModel uid with LeType and LeClass python class
il y a 9 ans
Yann Weber
eba6e9d6cf
Deleted most of Django code/files
il y a 9 ans
ArnAud
fbd970a070
Model: add creation and modification date to common fields
il y a 9 ans
ArnAud
5babe2f6d7
migration handler SQL: use basic_type and fieldtypes method to create column definitions
il y a 9 ans
ArnAud
fdf8afc236
fieldtypes: add ftype class attribute
il y a 9 ans
Yann Weber
756b0e0b0b
Test were broken by previous commit...
il y a 9 ans
Yann Weber
4d445e876e
_LeObject.get() enhancement
il y a 9 ans
Yann Weber
6123d23be4
Update the _LeObject.get() method to handle relationnal filters
il y a 9 ans
Yann Weber
2860d8cf20
Add a ftype class attribute to EmFieldType objects
il y a 9 ans
Yann Weber
2c37a9bf46
Update the quer_filter spliting method to handle superior.nature field notation.
Update the associated tests
il y a 9 ans
Yann Weber
0c51d6a483
Added some class property to LeFactory generated classes to avoid Model calls
il y a 9 ans
Yann Weber
482378fb18
Started some method implementation form _LeObject and LeType
Methods are _LeObject.get() and LeType.check_datas()
il y a 9 ans
ArnAud
b4740208ca
Migration handler SQL: create common fields in object table
il y a 9 ans
ArnAud
a4dacc654a
classtype: use the same naming pattern for *_id fields
il y a 9 ans
ArnAud
0a0ebd69ea
migration handler SQL: use PrimaryKey name from classtypes.py configuration
il y a 9 ans
Yann Weber
384ffb006b
Default fields processing changes + updated the me.json
Now on load default fields for EmClass are created. The EmClass.check method create them if they are not present.
il y a 9 ans
Yann Weber
9df9095da3
Add a test for EmField
Checking that internal='object' is reserved for common fields
il y a 9 ans