Yann Weber
ee578c1f89
Add another test for LeObject.get() method
8 years ago
Yann Weber
965560bf6b
Add test for LeObject with a mock on the datasource + bugfix on _LeObject and LeType
8 years ago
Roland Haroutiounian
ee89b62f40
[#61 ] added a default module setting to LeDataSourceSQL object
8 years ago
Roland Haroutiounian
a27aba08f0
[#61 ] Added a first implementation of the insert method
8 years ago
Yann Weber
f5e79bbac1
Fix bad argument in DummyDatasource
8 years ago
Roland Haroutiounian
7bf9ceb7a3
[#61 ] pep8 correction
8 years ago
Roland Haroutiounian
8bc93a67d5
[#61 ] First implementation of the get method in ledatasourcesql
8 years ago
Roland Haroutiounian
dcd65f5f4c
[#61 ] Rewriting the method headers
8 years ago
Yann Weber
6bc80ce40b
Bugfix on pk fieldtype
8 years ago
Yann Weber
7655aa7d54
GraphVizBackend bugfix
8 years ago
Yann Weber
25c7f607af
Implements delete() and update() methods in LeType and _LeObject
8 years ago
Yann Weber
c2ce3e3717
And another file I forgeted
8 years ago
Yann Weber
b257d6e16d
Add the two files for testing leobject package (that I forget to add in previous commit -_- )
8 years ago
Yann Weber
ec033f63fb
Update the relationnal filters parse/storage and associated tests
8 years ago
Yann Weber
46c98dc046
Updated the DummyDatasource + documenting query filters
8 years ago
Yann Weber
a53f647810
Add insert method
8 years ago
Roland Haroutiounian
8478fef37d
[#61 ] started the implementation of relational_filters in LeDataSourceSQL
8 years ago
Yann Weber
1d29e95951
Add tests for LeObject + bufix
8 years ago
Roland Haroutiounian
d826611811
[#61 ] Added the case of a non given relational_filters argument
8 years ago
Roland Haroutiounian
50af1b16a8
[#61 ] Added the empty functions : update, insert, delete to the LeDataSourceSQL class
8 years ago
Roland Haroutiounian
8d3760f98d
[#61 ] Corrected the ftype in the bool fieldtype
8 years ago
Yann Weber
ff50f7ee64
_Leobject code factorisation
8 years ago
Roland Haroutiounian
96fbc2f45e
[#61 ] changed params in the dummy data source class
8 years ago
Roland Haroutiounian
e064173359
[#61 ] Corrected the headers of update and delete methods in dummy datasource
8 years ago
Yann Weber
1c4e2ddba8
Some Doxygen comments fix
8 years ago
Roland Haroutiounian
2fedc186da
[#61 ] Moved ledatasource into dummy
8 years ago
Yann Weber
0be8db4d00
Complete the LeFactory generated code tests, add a __hash__ method for fieldtypes
8 years ago
Roland Haroutiounian
3f8e5c9fce
[#61 ] Added the tablename generation
8 years ago
Roland Haroutiounian
40d8680c56
Merge branch 't61'
8 years ago
Roland Haroutiounian
765a4e5830
[#61 ] Added the return as a dict in the get method of LeDataSource
8 years ago
Roland Haroutiounian
89b13c5d91
[#61 ] Added the prepare_filters method
8 years ago
Yann Weber
f029a95214
Add tests for LeFactory generated code
8 years ago
Roland Haroutiounian
961dfe1ea3
Merge branch 't61'
8 years ago
Roland Haroutiounian
38675a63ab
[#61 ] Added the signatures of the LeDataSource methods
8 years ago
Roland Haroutiounian
e98e024916
[#61 ] Started using mosql
8 years ago
Roland Haroutiounian
a935446871
[#61 ] added the LeDataSourceSQL class
8 years ago
Roland Haroutiounian
4f8c7a22bb
[#61 ] Added the prototype for the get method in LeDataSource class
8 years ago
Roland Haroutiounian
a0f8196e05
[#61 ] Added the LeDataSource file
8 years ago
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
8 years ago
Yann Weber
0f0a636eac
Add LeObject._me_uid dict populate in LeFactory + code factorisation
8 years ago
Yann Weber
76782b1b5b
BugFix in Model tests
An old string was given as argument to DummyMigrationHandler and was interpreted as debug = True
8 years ago
Yann Weber
589d7f2eef
Changed the way LeFactory generates python code
Added a test on LeFactory generated code
8 years ago
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
8 years ago
Yann Weber
250aa9e0ff
Add a class attribute to LeObject that maps EditorialModel uid with LeType and LeClass python class
8 years ago
Yann Weber
eba6e9d6cf
Deleted most of Django code/files
8 years ago
ArnAud
fbd970a070
Model: add creation and modification date to common fields
8 years ago
ArnAud
5babe2f6d7
migration handler SQL: use basic_type and fieldtypes method to create column definitions
8 years ago
ArnAud
fdf8afc236
fieldtypes: add ftype class attribute
8 years ago
Yann Weber
756b0e0b0b
Test were broken by previous commit...
8 years ago
Yann Weber
4d445e876e
_LeObject.get() enhancement
8 years ago