Yann Weber
eec3e107ba
Added a logger to Lodel2
9 years ago
Yann Weber
cb9b53e7a2
Hooks & plugins first implementation
9 years ago
Yann Weber
c814146832
Cleanings doxygen comments
9 years ago
Yann Weber
323fdd8496
Updated some tests
9 years ago
Yann Weber
dc143a3376
Implements delete in leapidatasource for leobjects and lerelations
9 years ago
Yann Weber
7fe0fe002e
Updated leapi and dummy datasource update method
Now update take id and no more filters
9 years ago
Yann Weber
6368aaea34
Now LeCrud.datas() method has a lang argument allowing datas to be indexed by fieldname translations
9 years ago
Yann Weber
bf44d66440
Changed the _fields properties of LeType child classes in dynamic code + adding complete argument to fieldlist() and fieldtypes() methods
+ tests
9 years ago
Yann Weber
37edad7b1f
Implements handling of relation_name field in relation common fields
9 years ago
Yann Weber
e7c1af45d9
Code cleaning for generic fieldtype
9 years ago
Yann Weber
1daf9677c6
Implements order in fieldtype construct
9 years ago
Yann Weber
173564b7ee
New constants in EditorialModel.classtypes
9 years ago
Yann Weber
43e8145dab
Implements get_max_rank() in LeApi. Add a fieldtype rank. + A lot of bugfix
The me.json was not up to date (Models don't forward classtypes modifications to loaded json file)
Some bugfix on fieldtypes that was not used (because of old me.json)
9 years ago
ArnAud
53663603fa
lecrud: get() flag instanciate to choose to get raw data or objects
9 years ago
ArnAud
ff8b0dd10a
lecrud.update(): do not check data consistency on update: must be done later
9 years ago
ArnAud
8eea3495e8
leapi: put name2classname() from LeFactory in _LeCrud to be available everywhere
9 years ago
Yann Weber
9b7d8c0357
Changes the doc and make change in partial instanciation process
9 years ago
Yann Weber
222f10282d
Bugfixes due to properties name changes in LeRelation
9 years ago
ArnAud
0cfd0b7f7b
leapi: datas() can be in _lecrud
9 years ago
Yann Weber
0b3f2bae1a
New way to instanciate LeCrud child classes
Note : This commit is not complete. It brakes the partial instanciation of classes etc.
9 years ago
Yann Weber
89667ee1d1
Fixing tests and other classes to fit recent changes
9 years ago
ArnAud
3143719d9c
LeCrud: fieldlist() returns a True list
9 years ago
ArnAud
c3bfb07246
group for SQL group not groups
9 years ago
Yann Weber
cf691c6538
Add a test on LeCrud.select() method (test order, groups, limit and offset arguments) + small bugfixes
9 years ago
ArnAud
b1b13f4afa
crud, SQL: implement order, group, limit and offset in get() request
9 years ago
Yann Weber
c36c13e709
Add test for _prepare_order_fields
9 years ago
Yann Weber
5515155cd9
Implement order by and group by in leobject.get
9 years ago
Yann Weber
9b012f2566
Moved the doxygen leobject_filter in lecrud + update it
9 years ago
Yann Weber
7b22eef33b
Add two more operators for filters : "like" and "not like" + updates the associated tests
9 years ago
Yann Weber
339545e89a
Add some tests for LeCrud utils methods
9 years ago
Yann Weber
67dbe5c097
Implements relation stuff + a lot of fixes in tests and in leo fieldtypes validation stack
9 years ago
Yann Weber
117ecad86a
Bugfix in super calls + tests modification given modifications in _prepare_filters
9 years ago
Yann Weber
5c1e89f890
Associating exceptions with field name in error lists ( cf. #89 )
9 years ago
ArnAud
3167f17160
ledatasourcesql: implement Letype.update()
9 years ago
Yann Weber
90173e9dea
Added multiples tests on types in _LeCrud + check given class when inserting
9 years ago
Yann Weber
a0a83ad19b
Add test + small bugfixes in fieldtypes + implementations of short utils methods
9 years ago
ArnAud
142f2ff3f5
LeCrud: is_letype() and is_leclass() helper functions + use it in LeDataSourceSQL
9 years ago
Yann Weber
798ad5a68e
Added 2 fieldtypes : leo and naturerelation + add a uidname method to _LeCrud
9 years ago
ArnAud
9d16c6a4c8
SQL datasource: implement get() from LeObject
9 years ago
Yann Weber
0349007243
Added tests + bugfix on LeType __init__ method
9 years ago
Yann Weber
bbdee7d082
Tests + bugfixes on LeCrud LeObject LeClass and LeType delete and get methods
9 years ago
Yann Weber
281acd45f9
Bugfix in insert calls in Lecrud + Tests bugfix
9 years ago
Yann Weber
52cbce9865
Changed LeFactory generated code (again) + Bugfix on LeCrud + more tests and tests update
9 years ago
Yann Weber
aae570e5bc
Bugfix + added some tests to LeCrud
9 years ago
ArnAud
c4f36b9c2d
lecrud: raise the appropriate error
9 years ago
Yann Weber
d44d86cb79
Bugfix and better implementation of _LeCrud.check_datas_value()
9 years ago
Yann Weber
9cbef1179b
More methods implementations in LeCrud
Implements update, delete, insert and delete_multi (not tested)
9 years ago
Yann Weber
432de540e9
Implementing get and tools functions in LeCrud (deleting most of them from _LeObject)
Skipping a lot of tests
9 years ago
Yann Weber
187886362d
Updated LeFactory generated code and LeFactory class itself
Bugfixes in generated code imports
Enhancement on generated classes retrieval
9 years ago
Yann Weber
0af03c93d6
Import Bugfix + LeFactory generated code update
9 years ago