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.
9 years ago
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)
9 years ago
ArnAud
e57598690d
TestMe: add a type with no superior
9 years ago
ArnAud
2379d6031d
Tests: add an unselected optional field to test ME
9 years ago
Roland Haroutiounian
bd6fa1e0e9
[#49 ] deleted an obsolete commented import
9 years ago
Roland Haroutiounian
e4dfc1bb7a
[#49 ] Changes made in the unit tests for test_model
9 years ago
ArnAud
5fabf34ddb
EmType: bugfix, maybe we should learn python :p
9 years ago
Yann Weber
0861aadc78
Add some tests to EmComponent
9 years ago
Yann Weber
3109cc72bd
Deleted deprecated methos new_uid from EmComponent
9 years ago
Roland Haroutiounian
88d79a0a22
[#49 ] added an existence test for the "model" property in EmComponent.dumps()
9 years ago
Roland Haroutiounian
f1a264ac59
[#49 ] Removed the string casting in attr_dump
9 years ago
ArnAud
d7b59df745
EmModel: attr_dump does not use attribut 'model' anymore
9 years ago
ArnAud
cdf31218f6
EmModel: _initiated attribut does not exist anymore in attr_dump
9 years ago
ArnAud
63787bc969
EmModel: bug fix create component: do not use positional argument
9 years ago
ArnAud
9131f7bcd2
EmField: type attribute is now called fieldtype
9 years ago
Roland Haroutiounian
f0c760fdb0
[#49 ] Took off the "model" property from the component dump
9 years ago
Roland Haroutiounian
e6de8b7a8b
[#49 ] Changed the value format used for the component in its attr_dump method
9 years ago
Roland Haroutiounian
eaf0520d3b
[#49 ] Changed the migration handler used in the tests for Model
9 years ago
ArnAud
49b78fe37d
EmType: implement add_superior() & del_superior()
9 years ago
ArnAud
bc75d357e0
EmType: linked_types() is not usefull for now
9 years ago
ArnAud
a89cfa4429
EmType: use superiors_list instead of subordinates_list to save type hierarchy
9 years ago
ArnAud
8919e55bfb
EmType : select_field() and unselect_field() now call the migration handler
9 years ago
ArnAud
e5d6caa6cf
EmModel : new method migrate_handler()
use it to re-run ME creation in a new Migration Handler
9 years ago
ArnAud
ea302bb469
EmModel : create_component() can take an optional uid
9 years ago
ArnAud
7a97bc16fb
test ME: rank was not correct
9 years ago
Yann Weber
aaa39feeea
BugFix on graphviz backend with new EmField
9 years ago
Yann Weber
18695e3a72
Implement the BackendJson save method
9 years ago
Yann Weber
d199d571bd
Cleaning & commenting + adding warning
9 years ago
Yann Weber
d35fa8c56e
Cleaning and commenting
9 years ago
Yann Weber
2b6615775c
Added a django admin command to list fieldtypes
9 years ago
Yann Weber
3801148387
[not tested] Added a boolean field
9 years ago
Yann Weber
60e23b4946
[not tested] Added 3 more fieldtypes : file, datetime, text
9 years ago
Yann Weber
4096a19d77
Updated the MH
Now it has a EmField 2 django method
9 years ago
Yann Weber
5d71d29f91
Updated the me.json
9 years ago
Yann Weber
773afc5b2c
New version (again) of the fieldtypes
9 years ago
Yann Weber
4c0b8d3279
New graphviz backend + some methods added to some components
9 years ago
Roland Haroutiounian
946cc49a88
Added default values for django models Field types
9 years ago
Yann Weber
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
9 years ago
Roland Haroutiounian
a318ef2dca
Code cleaning
9 years ago
Roland Haroutiounian
ce07a938b7
Added the mapping of the django models field types in the EmField class
9 years ago
Yann Weber
12588a37ed
Added a dryrun option to the migration handler and solved a bug in the django patch file
9 years ago
Yann Weber
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
9 years ago
Yann Weber
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
9 years ago
Yann Weber
8bea52d740
Code cleaning and adding features to generate models in application only when not testing with the MH
9 years ago
Yann Weber
aa6e01bff0
Dirty comit of a djago MH that "works"
Code cleaning, commenting etc needed...
9 years ago
Roland Haroutiounian
53eb1ac57d
[#46 ] Commented the to_sql methods
9 years ago
Roland Haroutiounian
e63a4a8bdf
[#46 ] Changed the fieldtypes.py content to use Django field types instead of sqlalchemy's ones
9 years ago
Roland Haroutiounian
fcd449d597
[#46 ] Changed the initialization process of the fieldtype classes
9 years ago
Yann Weber
f8879901f1
Using uniq_name of component for naming Django models
9 years ago
Yann Weber
74f1de0f4b
First version of the DjangoMigrationHandler. Created a LodelTestInstance for tests purpose
Some problems are still to solve (see the todo comments in EditorialModel/migrationhandler/django.py )
9 years ago