1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-21 16:49:02 +02:00
Commit graph

495 commits

Author SHA1 Message Date
Roland Haroutiounian
1f90b6f911 [#49] Changed the use of superiors in the migration handler
I put a for loop over the list to generate a foreign key for each item in the list.
2015-09-23 13:34:08 +02:00
ArnAud
644f76b14d Emtype: superiors_list should be a dict with list of int
=> a type can have multiple superiors (only instance of LeObject can have one)
2015-09-23 12:15:35 +02:00
ArnAud
e57598690d TestMe: add a type with no superior 2015-09-23 12:15:34 +02:00
ArnAud
2379d6031d Tests: add an unselected optional field to test ME 2015-09-23 12:15:34 +02:00
Roland Haroutiounian
bd6fa1e0e9 [#49] deleted an obsolete commented import 2015-09-23 11:35:26 +02:00
Roland Haroutiounian
76d2d55653 Merge branch 't49' 2015-09-23 11:33:33 +02:00
Roland Haroutiounian
e4dfc1bb7a [#49] Changes made in the unit tests for test_model 2015-09-23 09:34:43 +02:00
ArnAud
5fabf34ddb EmType: bugfix, maybe we should learn python :p 2015-09-18 16:16:28 +02:00
Yann
0861aadc78 Add some tests to EmComponent 2015-09-18 15:58:05 +02:00
Yann
3109cc72bd Deleted deprecated methos new_uid from EmComponent 2015-09-18 15:44:36 +02:00
Roland Haroutiounian
88d79a0a22 [#49] added an existence test for the "model" property in EmComponent.dumps() 2015-09-18 15:39:05 +02:00
Roland Haroutiounian
8ddf179e8f Merge branch 't49' 2015-09-18 15:32:16 +02:00
Roland Haroutiounian
f1a264ac59 [#49] Removed the string casting in attr_dump 2015-09-18 15:31:33 +02:00
Yann
f1a9a7d520 Added new loggers settings 2015-09-18 15:08:35 +02:00
ArnAud
d7b59df745 EmModel: attr_dump does not use attribut 'model' anymore 2015-09-18 15:02:14 +02:00
ArnAud
cdf31218f6 EmModel: _initiated attribut does not exist anymore in attr_dump 2015-09-18 14:58:13 +02:00
ArnAud
63787bc969 EmModel: bug fix create component: do not use positional argument 2015-09-18 14:58:13 +02:00
ArnAud
9131f7bcd2 EmField: type attribute is now called fieldtype 2015-09-18 14:58:13 +02:00
Roland Haroutiounian
8d7062e670 Merge branch 't49' 2015-09-18 14:20:52 +02:00
Roland Haroutiounian
f0c760fdb0 [#49] Took off the "model" property from the component dump 2015-09-18 14:19:58 +02:00
Roland Haroutiounian
e6de8b7a8b [#49] Changed the value format used for the component in its attr_dump method 2015-09-18 14:01:35 +02:00
Roland Haroutiounian
eaf0520d3b [#49] Changed the migration handler used in the tests for Model 2015-09-18 14:01:35 +02:00
Yann
38395e09a5 Merge branch 'fieldtypes' with the new EmField processing
Conflicts:
	EditorialModel/model.py
	EditorialModel/test/me.json
2015-09-18 12:43:07 +02:00
ArnAud
6388eb6701 Merge branch 'migration_handler':
Add the possibility to change the migartion handler of a Model
It will send changes one by one to the new migartion handler
so it can re-create the Editorial Model
2015-09-18 12:31:57 +02:00
ArnAud
49b78fe37d EmType: implement add_superior() & del_superior() 2015-09-18 12:30:59 +02:00
ArnAud
bc75d357e0 EmType: linked_types() is not usefull for now 2015-09-18 12:30:59 +02:00
ArnAud
a89cfa4429 EmType: use superiors_list instead of subordinates_list to save type hierarchy 2015-09-18 12:30:59 +02:00
ArnAud
8919e55bfb EmType : select_field() and unselect_field() now call the migration handler 2015-09-18 12:30:59 +02:00
ArnAud
e5d6caa6cf EmModel : new method migrate_handler()
use it to re-run ME creation in a new Migration Handler
2015-09-18 12:30:59 +02:00
ArnAud
ea302bb469 EmModel : create_component() can take an optional uid 2015-09-18 12:30:59 +02:00
ArnAud
7a97bc16fb test ME: rank was not correct 2015-09-18 12:30:59 +02:00
Yann
aaa39feeea BugFix on graphviz backend with new EmField 2015-09-18 12:23:25 +02:00
Yann
18695e3a72 Implement the BackendJson save method 2015-09-18 12:23:00 +02:00
Yann
d199d571bd Cleaning & commenting + adding warning 2015-09-18 11:17:47 +02:00
Yann
d35fa8c56e Cleaning and commenting 2015-09-17 17:14:20 +02:00
Yann
2b6615775c Added a django admin command to list fieldtypes 2015-09-17 16:24:17 +02:00
Yann
3801148387 [not tested] Added a boolean field 2015-09-17 15:52:50 +02:00
Yann
60e23b4946 [not tested] Added 3 more fieldtypes : file, datetime, text 2015-09-17 15:49:11 +02:00
Yann
4096a19d77 Updated the MH
Now it has a EmField 2 django method
2015-09-17 15:10:57 +02:00
Yann
5d71d29f91 Updated the me.json 2015-09-17 15:10:42 +02:00
Yann
773afc5b2c New version (again) of the fieldtypes 2015-09-17 15:10:22 +02:00
Yann
4c0b8d3279 New graphviz backend + some methods added to some components 2015-09-17 12:00:48 +02:00
Roland Haroutiounian
946cc49a88 Added default values for django models Field types 2015-09-16 17:31:43 +02:00
Yann
0dd07ea281 [Broken] Make the MH using the to_django method of EmField and me.json updates
Added a fieldtype varchar to me.json
There is a bug with django fields default values
2015-09-16 17:27:48 +02:00
Roland Haroutiounian
a318ef2dca Code cleaning 2015-09-16 15:26:47 +02:00
Roland Haroutiounian
ce07a938b7 Added the mapping of the django models field types in the EmField class 2015-09-16 15:25:18 +02:00
Yann
6ed2bb1e72 Merge branch 'django_mh'
Adding the django migration handler
2015-09-16 14:48:25 +02:00
Yann
12588a37ed Added a dryrun option to the migration handler and solved a bug in the django patch file 2015-09-16 14:44:43 +02:00
Yann
e5e23defec Now we use the register_model_state method to migrate the db
Added a patch to solve a bug in django/core/management/commands/makemigrations.py w/django/core/management/commands/makemigrations.py
See https://code.djangoproject.com/ticket/24735
2015-09-16 11:55:01 +02:00
Yann
1137205c99 Solved some bugs about conditionnal models instanciation in LodelTestInstance.models
Added Lodel/settings/migrations.py that I forget
Disabled the --merge option that was given to the makemigrations command by the MH
2015-09-16 11:03:45 +02:00