Yann Weber
4c6f189c1f
Added tests for Lodel.user module
Testing authentication_method and identification_method decorator classes + UserIdentity and UserContext classes
8 gadus atpakaļ
Yann Weber
04636f7582
Add a LodelHook tests, for leapi_update_* hooks calls
8 gadus atpakaļ
Yann Weber
be675bc723
Writing some tests for LodelHook
8 gadus atpakaļ
Yann Weber
eec3e107ba
Added a logger to Lodel2
8 gadus atpakaļ
Yann Weber
cb9b53e7a2
Hooks & plugins first implementation
8 gadus atpakaļ
Yann Weber
c814146832
Cleanings doxygen comments
8 gadus atpakaļ
Yann Weber
4d9ced1807
Unskip, delete and fix some tests
8 gadus atpakaļ
Yann Weber
323fdd8496
Updated some tests
8 gadus atpakaļ
Yann Weber
dc143a3376
Implements delete in leapidatasource for leobjects and lerelations
8 gadus atpakaļ
Yann Weber
7fe0fe002e
Updated leapi and dummy datasource update method
Now update take id and no more filters
8 gadus atpakaļ
ArnAud
d978e8100b
lerelation: send the value not the key
8 gadus atpakaļ
Yann Weber
51eaf22273
Updated fieldtypes() method in LeRel2Type
8 gadus atpakaļ
ArnAud
ab59896f8f
lerelation: empty return value from datasource would be [] not None
8 gadus atpakaļ
Yann Weber
d4504df92a
Bugfix for Em MlString translations + me.json update
8 gadus atpakaļ
Yann Weber
02e32d887b
MlString update
8 gadus atpakaļ
Yann Weber
6368aaea34
Now LeCrud.datas() method has a lang argument allowing datas to be indexed by fieldname translations
8 gadus atpakaļ
Yann Weber
cae0377c3d
More doc + tests fixes and rank fieldtype fix
8 gadus atpakaļ
Yann Weber
2b2e219549
Changed the way of complete arguement is interpreted in fieldtypes() and fieldlist() method
8 gadus atpakaļ
Yann Weber
bf44d66440
Changed the _fields properties of LeType child classes in dynamic code + adding complete argument to fieldlist() and fieldtypes() methods
+ tests
8 gadus atpakaļ
Yann Weber
5ad9c27a07
Introducing the notion of immutable fieldtypes for classtypes fields definition
8 gadus atpakaļ
Yann Weber
37edad7b1f
Implements handling of relation_name field in relation common fields
8 gadus atpakaļ
Yann Weber
da89046c33
Add the relation_name field to relation_common_fields list
We have to create a special fieldtype to handle this field
8 gadus atpakaļ
Yann Weber
e7c1af45d9
Code cleaning for generic fieldtype
8 gadus atpakaļ
Yann Weber
1daf9677c6
Implements order in fieldtype construct
8 gadus atpakaļ
Yann Weber
173564b7ee
New constants in EditorialModel.classtypes
8 gadus atpakaļ
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 gadus atpakaļ
ArnAud
53663603fa
lecrud: get() flag instanciate to choose to get raw data or objects
8 gadus atpakaļ
Yann Weber
f2a54b72cd
Comments update for doxygen doc
Now we have a main page on doxygen
8 gadus atpakaļ
Yann Weber
b34ce35e85
Removed unused & obsolete code in leapi/letype.py
8 gadus atpakaļ
ArnAud
ff8b0dd10a
lecrud.update(): do not check data consistency on update: must be done later
8 gadus atpakaļ
ArnAud
cd99fb106b
lerelation: instanciate from data
8 gadus atpakaļ
Yann Weber
680ad61036
Fixed LeFactory tests
8 gadus atpakaļ
ArnAud
8eea3495e8
leapi: put name2classname() from LeFactory in _LeCrud to be available everywhere
8 gadus atpakaļ
Yann Weber
ef8f961c2b
Removed old code
8 gadus atpakaļ
Yann Weber
9b7d8c0357
Changes the doc and make change in partial instanciation process
8 gadus atpakaļ
Yann Weber
222f10282d
Bugfixes due to properties name changes in LeRelation
8 gadus atpakaļ
Yann Weber
e44dbcbad8
Add -f option to rm in Makefiles and changes 2 properties names in generated code
8 gadus atpakaļ
ArnAud
0cfd0b7f7b
leapi: datas() can be in _lecrud
8 gadus atpakaļ
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 gadus atpakaļ
Yann Weber
b643477e3c
Fixing syntax error
8 gadus atpakaļ
Yann Weber
7756b5b591
Adding the newly added properties to _LeObject and _LeRelation classes
8 gadus atpakaļ
Yann Weber
9711cc65dc
Add a new propertie to LeObject dynamic class : _me_uid_field_names (stores the names of the fields _class_id and _type_id)
8 gadus atpakaļ
Yann Weber
3fbe9b69d5
Add 2 properties for LeRel2Type dynamically generated child classes
The two new properties are :
- superior_cls stores a LeObject child class
- subordinate_cls stores a LeObject child class
8 gadus atpakaļ
ArnAud
d509fdf196
LeRelation: first draft of method to instanciate from a dict of data
8 gadus atpakaļ
ArnAud
44665600ef
leType: relations use superior and subordinate name now
8 gadus atpakaļ
ArnAud
94e6cbf81e
LeObject: method to instanciate from a dict of data
8 gadus atpakaļ
ArnAud
942826e5e6
LeClass.fieldlist() returns a list
8 gadus atpakaļ
Yann Weber
89667ee1d1
Fixing tests and other classes to fit recent changes
8 gadus atpakaļ
Yann Weber
146c0fd69b
Finish the new version of migrationhandler + modifications in leFactory and LeRelation (to handle generic lesup & lesub in LeRelation)
8 gadus atpakaļ
ArnAud
a3f7cf3fa0
leapi: helper leo_class() to get class of a lodel object
8 gadus atpakaļ