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