Yann
f5e79bbac1
Fix bad argument in DummyDatasource
2015-10-23 11:41:34 +02:00
Roland Haroutiounian
7bf9ceb7a3
[ #61 ] pep8 correction
2015-10-23 11:39:40 +02:00
Roland Haroutiounian
8bc93a67d5
[ #61 ] First implementation of the get method in ledatasourcesql
2015-10-23 11:38:46 +02:00
Roland Haroutiounian
dcd65f5f4c
[ #61 ] Rewriting the method headers
2015-10-23 11:38:46 +02:00
Yann
6bc80ce40b
Bugfix on pk fieldtype
2015-10-23 11:33:06 +02:00
Yann
7655aa7d54
GraphVizBackend bugfix
2015-10-23 11:17:50 +02:00
Yann
25c7f607af
Implements delete() and update() methods in LeType and _LeObject
2015-10-23 11:05:11 +02:00
Yann
c2ce3e3717
And another file I forgeted
2015-10-23 10:42:20 +02:00
Yann
b257d6e16d
Add the two files for testing leobject package (that I forget to add in previous commit -_- )
2015-10-23 10:40:28 +02:00
Yann
ec033f63fb
Update the relationnal filters parse/storage and associated tests
2015-10-23 10:39:06 +02:00
Yann
46c98dc046
Updated the DummyDatasource + documenting query filters
2015-10-23 10:25:26 +02:00
Yann
a53f647810
Add insert method
2015-10-23 09:24:39 +02:00
Roland Haroutiounian
8478fef37d
[ #61 ] started the implementation of relational_filters in LeDataSourceSQL
2015-10-22 16:30:44 +02:00
Yann
1d29e95951
Add tests for LeObject + bufix
2015-10-22 16:29:13 +02:00
Roland Haroutiounian
d826611811
[ #61 ] Added the case of a non given relational_filters argument
2015-10-22 15:23:48 +02:00
Roland Haroutiounian
50af1b16a8
[ #61 ] Added the empty functions : update, insert, delete to the LeDataSourceSQL class
2015-10-22 14:17:05 +02:00
Roland Haroutiounian
8d3760f98d
[ #61 ] Corrected the ftype in the bool fieldtype
2015-10-22 13:28:45 +02:00
Yann
ff50f7ee64
_Leobject code factorisation
2015-10-22 13:18:52 +02:00
Roland Haroutiounian
96fbc2f45e
[ #61 ] changed params in the dummy data source class
2015-10-22 12:21:10 +02:00
Roland Haroutiounian
e064173359
[ #61 ] Corrected the headers of update and delete methods in dummy datasource
2015-10-22 12:21:10 +02:00
Yann
1c4e2ddba8
Some Doxygen comments fix
2015-10-22 11:25:23 +02:00
Roland Haroutiounian
2fedc186da
[ #61 ] Moved ledatasource into dummy
2015-10-22 10:42:27 +02:00
Yann
0be8db4d00
Complete the LeFactory generated code tests, add a __hash__ method for fieldtypes
2015-10-22 09:55:20 +02:00
Roland Haroutiounian
3f8e5c9fce
[ #61 ] Added the tablename generation
2015-10-22 08:46:19 +02:00
Roland Haroutiounian
40d8680c56
Merge branch 't61'
2015-10-21 16:15:49 +02:00
Roland Haroutiounian
765a4e5830
[ #61 ] Added the return as a dict in the get method of LeDataSource
2015-10-21 16:15:01 +02:00
Roland Haroutiounian
89b13c5d91
[ #61 ] Added the prepare_filters method
2015-10-21 13:32:43 +02:00
Yann
f029a95214
Add tests for LeFactory generated code
2015-10-21 12:38:42 +02:00
Roland Haroutiounian
961dfe1ea3
Merge branch 't61'
2015-10-21 11:23:59 +02:00
Roland Haroutiounian
38675a63ab
[ #61 ] Added the signatures of the LeDataSource methods
2015-10-21 11:23:24 +02:00
Roland Haroutiounian
e98e024916
[ #61 ] Started using mosql
2015-10-21 11:11:07 +02:00
Roland Haroutiounian
a935446871
[ #61 ] added the LeDataSourceSQL class
2015-10-21 11:11:07 +02:00
Roland Haroutiounian
4f8c7a22bb
[ #61 ] Added the prototype for the get method in LeDataSource class
2015-10-21 11:11:07 +02:00
Roland Haroutiounian
a0f8196e05
[ #61 ] Added the LeDataSource file
2015-10-21 11:11:06 +02:00
Yann
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
2015-10-21 11:08:00 +02:00
Yann
0f0a636eac
Add LeObject._me_uid dict populate in LeFactory + code factorisation
2015-10-21 10:57:52 +02:00
Yann
76782b1b5b
BugFix in Model tests
...
An old string was given as argument to DummyMigrationHandler and was interpreted as debug = True
2015-10-21 09:50:26 +02:00
Yann
589d7f2eef
Changed the way LeFactory generates python code
...
Added a test on LeFactory generated code
2015-10-21 09:47:30 +02:00
Yann
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
2015-10-20 17:10:40 +02:00
Yann
250aa9e0ff
Add a class attribute to LeObject that maps EditorialModel uid with LeType and LeClass python class
2015-10-16 17:05:29 +02:00
Yann
eba6e9d6cf
Deleted most of Django code/files
2015-10-16 17:05:29 +02:00
ArnAud
fbd970a070
Model: add creation and modification date to common fields
2015-10-16 17:02:14 +02:00
ArnAud
5babe2f6d7
migration handler SQL: use basic_type and fieldtypes method to create column definitions
2015-10-16 17:01:27 +02:00
ArnAud
fdf8afc236
fieldtypes: add ftype class attribute
2015-10-16 17:00:10 +02:00
Yann
756b0e0b0b
Test were broken by previous commit...
2015-10-16 16:48:30 +02:00
Yann
4d445e876e
_LeObject.get() enhancement
2015-10-16 16:42:33 +02:00
Yann
6123d23be4
Update the _LeObject.get() method to handle relationnal filters
2015-10-16 16:22:10 +02:00
Yann
2860d8cf20
Add a ftype class attribute to EmFieldType objects
2015-10-16 16:05:45 +02:00
Yann
2c37a9bf46
Update the quer_filter spliting method to handle superior.nature field notation.
...
Update the associated tests
2015-10-16 15:46:01 +02:00
Yann
0c51d6a483
Added some class property to LeFactory generated classes to avoid Model calls
2015-10-16 14:05:18 +02:00