1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-08-05 20:08:37 +02:00
Commit graph

698 commits

Author SHA1 Message Date
Roland Haroutiounian
6a5136d728 PEP8/PyLint on classtypes.py 2015-11-13 11:20:33 +01:00
Roland Haroutiounian
5d43d897e1 PEP8 / PyLint on classes.py 2015-11-13 11:16:42 +01:00
Roland Haroutiounian
8b866388e6 PEP8/PyLint on migrationhandler module 2015-11-13 11:13:41 +01:00
Roland Haroutiounian
8b4244aaf5 PEP8/PyLint on EditorialModel/fieldtypes 2015-11-13 10:03:03 +01:00
Roland Haroutiounian
565045b413 PEP8/Pylint on DataSource MySQL 2015-11-13 09:48:46 +01:00
ArnAud
04aa093ccf SQL datasource: use Cursor.lastrowid instead of an SQL query 2015-11-12 17:18:38 +01:00
ArnAud
5517eb0c26 SQL datasource: return one id if only inserted one 2015-11-12 17:17:35 +01:00
Roland Haroutiounian
285da59e7d Changed the dummy datasource for Leobject 2015-11-12 14:20:23 +01:00
Roland Haroutiounian
4a4204de17 relational fields in the delete_related method 2015-11-12 14:15:35 +01:00
Yann
f886bb5193 Delete relationnal Field from the generated LeType child class 2015-11-09 09:18:56 +01:00
ArnAud
7320e48306 leobject: use the right variable name 2015-11-06 17:31:20 +01:00
ArnAud
66251f3788 datasourcesql : use object table when no class or type 2015-11-06 17:30:12 +01:00
ArnAud
eb8d282857 test Model: char fields should be nullable 2015-11-06 17:25:59 +01:00
Yann
7b647c5ba4 Changed a comment 2015-11-06 17:23:33 +01:00
Yann
e3187a0ae9 Bugfix on add related + 2 todo on del_related 2015-11-06 17:18:00 +01:00
Yann
d45b84c5d9 Implements get_related in MySQL datasource 2015-11-06 16:50:38 +01:00
Roland Haroutiounian
aaa4268afa [#74] del_related method is usable in LeDataSourceSQL 2015-11-06 15:50:14 +01:00
Yann
7242b685d2 Pep8 on LeFactory generated code 2015-11-06 15:02:53 +01:00
ArnAud
dc4f433dd0 from python_hell import ImportError 2015-11-06 14:46:40 +01:00
Yann
d35f499e3d Deleted useless code 2015-11-06 14:44:46 +01:00
Yann
61ccc04772 Bugfix in lefactory 2015-11-06 14:31:46 +01:00
Yann
39401184d0 Add a new method __purge_db() to the migration handler 2015-11-06 12:21:39 +01:00
Roland Haroutiounian
69306a9357 [#69] Dealing with all kind of natures and not only "parent" (in LeDataSourceSQL.add_superior) 2015-11-06 11:29:36 +01:00
Roland Haroutiounian
1e8e10b569 [#69] "parent" nature is now taken from EditorialModel.classtypes.EmNature 2015-11-06 11:25:24 +01:00
Roland Haroutiounian
2591d95409 Merge branch 't69-add-superior' 2015-11-06 11:12:16 +01:00
Roland Haroutiounian
6a4a7af931 [#69] Added the code to add the relations to all the superiors in a hierarchy 2015-11-06 10:43:10 +01:00
Yann
668d97e2fb Implements add_related set_relation_rank in MySQL ledatasource and updated get_relation 2015-11-06 10:07:50 +01:00
Yann
76c1174509 Implements get_subordinates in the MySQL datasource 2015-11-05 16:41:08 +01:00
Roland Haroutiounian
75d47527ee get_superiors query is ordered by depth desc 2015-11-05 16:36:29 +01:00
Roland Haroutiounian
74e6c2b7da [#71] get_superiors method's first implementation 2015-11-05 16:25:39 +01:00
Yann
4b0a2ca093 Implements superiors and subordinates methods in LeType + old code removal in LeType 2015-11-05 16:16:26 +01:00
Yann
3503537b0d Implements _LeObject.hierarchy_get() method 2015-11-05 16:08:51 +01:00
Roland Haroutiounian
fa4e45d4c5 [#69] First implementation of add_superior, without the recursive calls
* add_superior's implementation in LeDataSourceSQL
* cleaning the code
2015-11-05 15:55:22 +01:00
Yann
4ce0e3ea55 Renamed superior methods in LeType 2015-11-05 15:54:44 +01:00
Yann
64c2a865df Implements _LeObject.hierarchy_del() and LeType.del_superior() 2015-11-05 15:54:43 +01:00
ArnAud
b1dd977a8b DataSource MySQL: change variable name 2015-11-05 15:53:57 +01:00
Yann
3fe8e3e1ef Implements LeType.add_superior() 2015-11-05 15:37:40 +01:00
Yann
94a5afcdd7 Implements _LeObject.hierarchy_add() method and instroduce the class LeRoot
LeRoot represents hierarchy root
2015-11-05 15:34:44 +01:00
Yann
4a38cec9e1 Updated the add_superior header in dummy datasource 2015-11-05 14:05:27 +01:00
Roland Haroutiounian
97df48eb46 Corrected the README file for the settings 2015-11-05 13:53:08 +01:00
Roland Haroutiounian
9b19c7bf32 The README file now has the basic settings.py file's content 2015-11-05 13:38:19 +01:00
Yann
a4e200b99a Merge branch 'master' of git.labocleo.org:lodel2 2015-11-05 12:30:42 +01:00
Yann
a960d83da3 Implements del_relation in LeDatasourceSQL and get_relation modifications 2015-11-05 12:29:17 +01:00
ArnAud
c8d9b9042c Emtype: no more fieldgroups 2015-11-05 12:20:59 +01:00
Yann
54ba4cc3c5 Implements get_relation in LeDatasourceSQL + some small changes in MySQL and MH 2015-11-05 12:11:41 +01:00
Roland Haroutiounian
0ad4e3c9fd [#67] del_relation method now uses only a relation id as argument 2015-11-05 12:09:12 +01:00
Yann
24b758af9b Updated some MySQL properties and MigrationHandler stuff 2015-11-05 12:02:37 +01:00
Roland Haroutiounian
b202a7933d [#68] get_relations method uses only one argument which is the object from which we want the relations 2015-11-05 12:01:47 +01:00
Yann
3e3114a0b2 Better comments for MySQL MH 2015-11-05 11:41:30 +01:00
Yann
583af5071d Add the code for generating the LeObject API python code in the README.md 2015-11-05 11:31:29 +01:00