1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-30 08:36:53 +01:00
Commit graph

112 commits

Author SHA1 Message Date
Yann
1ba59c513e Deleted obsolete test file 2015-12-17 11:17:37 +01:00
ArnAud
95deb4574e SQL datasource: insert method for relations 2015-12-17 11:14:10 +01:00
Roland Haroutiounian
4af1606b04 Added a first implementation of the set_rank method in LeRelation 2015-12-16 17:31:39 +01:00
Roland Haroutiounian
5a21025d89 Added a _parse_rank method in LeRelation and the corresponding tests 2015-12-16 11:55:55 +01:00
Yann
339545e89a Add some tests for LeCrud utils methods 2015-12-16 09:11:28 +01:00
ArnAud
1a2c0f6a45 sqlDatasource: insert() for a hierarchical relation 2015-12-04 09:41:55 +01:00
Yann
67dbe5c097 Implements relation stuff + a lot of fixes in tests and in leo fieldtypes validation stack 2015-12-03 17:41:59 +01:00
Yann
bde008a68c Updated lefactory (unused attr in relations) 2015-12-03 17:23:29 +01:00
Yann
117ecad86a Bugfix in super calls + tests modification given modifications in _prepare_filters 2015-12-03 13:56:48 +01:00
Yann
59d489bd67 Implements delete instance methods for relations classes 2015-12-03 11:29:59 +01:00
ArnAud
24888085e9 crud.get(): automatic filter for classes and types instances 2015-12-03 11:29:19 +01:00
Roland Haroutiounian
b02030b9fa [#87] deleted a "pass" instruction 2015-12-02 16:12:55 +01:00
Yann
4b4e465bb6 Implements utils function in LeType add_superior (hierarchy) and link_with (rel2type) and add a forgotten file
Implements a utils method in _LeRel2Type to fetch a rel2type leapi class name given a superior and a subordinate
2015-12-02 16:09:48 +01:00
Roland Haroutiounian
71443679d5 [87] delete method from LeRelation can now take a string as parameter for the target_class 2015-12-02 14:59:55 +01:00
Roland Haroutiounian
d5169cf9a1 [#87] Added the delete method to LeRelation 2015-12-02 12:00:35 +01:00
Yann
3ae2e6e613 Moved all modules related to DB in the DataSource folder ( fixes #88 ) 2015-12-02 11:35:55 +01:00
Yann
5c1e89f890 Associating exceptions with field name in error lists ( cf. #89 ) 2015-12-02 11:05:20 +01:00
Yann
6a6326831a Upgrade type check in leo fieldtype + unskip some tests 2015-12-02 09:49:42 +01:00
Roland Haroutiounian
a188aa09f8 Unskipped the test_get method in the LeHierarch test case class 2015-12-02 09:47:01 +01:00
Roland Haroutiounian
5116ed0986 Unskipped the unit test on LeRelationTestCase for _prepare_filters method 2015-12-02 09:39:01 +01:00
Yann
e868055e75 Updated tests on update methods 2015-12-02 09:35:18 +01:00
Roland Haroutiounian
6817d3e010 First implementation of the _prepare_filters method in LeRelation class 2015-11-27 17:25:20 +01:00
ArnAud
3167f17160 ledatasourcesql: implement Letype.update() 2015-11-27 17:24:13 +01:00
Yann
f98b15bdb9 More tests for LeRel2Type
A get fails test
2015-11-27 17:19:56 +01:00
Yann
b54e46a09b Update _LeClass __init__ + first test for LeRel2Type 2015-11-27 17:11:40 +01:00
Yann
4ab9c124a0 Add tests for update and delete methods of LeRelation and LeHierarch
Almost all LeRelation and LeHierarch main features are covered by unit tests
2015-11-27 16:37:28 +01:00
ArnAud
2b87c1ce86 ledatasourcesql: use del in python, not PHP's unset ;) 2015-11-27 16:29:46 +01:00
Yann
90173e9dea Added multiples tests on types in _LeCrud + check given class when inserting 2015-11-27 16:19:47 +01:00
Yann
a0a83ad19b Add test + small bugfixes in fieldtypes + implementations of short utils methods 2015-11-27 15:59:06 +01:00
ArnAud
142f2ff3f5 LeCrud: is_letype() and is_leclass() helper functions + use it in LeDataSourceSQL 2015-11-27 15:55:26 +01:00
ArnAud
a5efcdbfd8 SQL datasource: implement LeClass.get() and LeType.get() 2015-11-27 15:40:26 +01:00
Yann
6da730f782 Write some test for LeRelation + __eq__ for LeObject + import bugfix in LeRelation
The test are skipped and can be unskipped as soon as LeRelation._prepare_filters() is implemented
2015-11-27 14:25:16 +01:00
Yann
1cd5998a88 Implements partial instanciation of LeObjects + utility classmethod for LeRelation 2015-11-27 14:11:53 +01:00
Roland Haroutiounian
598af04b4c Corrected the LeApiQueryError import in LeRelation module 2015-11-27 12:21:59 +01:00
Yann
967be41ede Disabled tests on LeDatasource SQL 2015-11-27 11:46:54 +01:00
Yann
61786cc71e Updated generated code with LeRel2Type child classes 2015-11-27 11:21:01 +01:00
Yann
798ad5a68e Added 2 fieldtypes : leo and naturerelation + add a uidname method to _LeCrud 2015-11-26 17:30:06 +01:00
ArnAud
9d16c6a4c8 SQL datasource: implement get() from LeObject 2015-11-26 17:18:56 +01:00
Yann
9cc1e8ab96 Started LeRelation and childs implementation
Begin to work on fieldtypes
2015-11-26 16:56:41 +01:00
ArnAud
386a761db1 sql datasource: insert an object 2015-11-26 14:45:31 +01:00
Yann
0349007243 Added tests + bugfix on LeType __init__ method 2015-11-26 14:43:05 +01:00
Yann
bbdee7d082 Tests + bugfixes on LeCrud LeObject LeClass and LeType delete and get methods 2015-11-26 14:29:25 +01:00
Yann
281acd45f9 Bugfix in insert calls in Lecrud + Tests bugfix 2015-11-26 11:31:41 +01:00
Yann
52cbce9865 Changed LeFactory generated code (again) + Bugfix on LeCrud + more tests and tests update 2015-11-26 11:05:51 +01:00
Yann
1558dcf519 Updated LeFactory. Now generating LeClass and LeType from _LeClass and _LeType 2015-11-26 10:39:01 +01:00
Yann
aae570e5bc Bugfix + added some tests to LeCrud 2015-11-25 17:34:39 +01:00
ArnAud
c4f36b9c2d lecrud: raise the appropriate error 2015-11-25 17:20:43 +01:00
Yann
d44d86cb79 Bugfix and better implementation of _LeCrud.check_datas_value() 2015-11-25 17:00:08 +01:00
Yann
9cbef1179b More methods implementations in LeCrud
Implements update, delete, insert and delete_multi (not tested)
2015-11-25 16:42:19 +01:00
Yann
4fedabcf88 Move and skip some tests 2015-11-25 14:37:34 +01:00