ArnAud
d7b59df745
EmModel: attr_dump does not use attribut 'model' anymore
hace 9 años
ArnAud
cdf31218f6
EmModel: _initiated attribut does not exist anymore in attr_dump
hace 9 años
ArnAud
63787bc969
EmModel: bug fix create component: do not use positional argument
hace 9 años
ArnAud
9131f7bcd2
EmField: type attribute is now called fieldtype
hace 9 años
Roland Haroutiounian
f0c760fdb0
[#49 ] Took off the "model" property from the component dump
hace 9 años
Roland Haroutiounian
e6de8b7a8b
[#49 ] Changed the value format used for the component in its attr_dump method
hace 9 años
Roland Haroutiounian
eaf0520d3b
[#49 ] Changed the migration handler used in the tests for Model
hace 9 años
ArnAud
49b78fe37d
EmType: implement add_superior() & del_superior()
hace 9 años
ArnAud
bc75d357e0
EmType: linked_types() is not usefull for now
hace 9 años
ArnAud
a89cfa4429
EmType: use superiors_list instead of subordinates_list to save type hierarchy
hace 9 años
ArnAud
8919e55bfb
EmType : select_field() and unselect_field() now call the migration handler
hace 9 años
ArnAud
e5d6caa6cf
EmModel : new method migrate_handler()
use it to re-run ME creation in a new Migration Handler
hace 9 años
ArnAud
ea302bb469
EmModel : create_component() can take an optional uid
hace 9 años
ArnAud
7a97bc16fb
test ME: rank was not correct
hace 9 años
Yann Weber
aaa39feeea
BugFix on graphviz backend with new EmField
hace 9 años
Yann Weber
18695e3a72
Implement the BackendJson save method
hace 9 años
Yann Weber
d199d571bd
Cleaning & commenting + adding warning
hace 9 años
Yann Weber
d35fa8c56e
Cleaning and commenting
hace 9 años
Yann Weber
2b6615775c
Added a django admin command to list fieldtypes
hace 9 años
Yann Weber
3801148387
[not tested] Added a boolean field
hace 9 años
Yann Weber
60e23b4946
[not tested] Added 3 more fieldtypes : file, datetime, text
hace 9 años
Yann Weber
4096a19d77
Updated the MH
Now it has a EmField 2 django method
hace 9 años
Yann Weber
5d71d29f91
Updated the me.json
hace 9 años
Yann Weber
773afc5b2c
New version (again) of the fieldtypes
hace 9 años
Yann Weber
4c0b8d3279
New graphviz backend + some methods added to some components
hace 9 años
Roland Haroutiounian
946cc49a88
Added default values for django models Field types
hace 9 años
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
hace 9 años
Roland Haroutiounian
a318ef2dca
Code cleaning
hace 9 años
Roland Haroutiounian
ce07a938b7
Added the mapping of the django models field types in the EmField class
hace 9 años
Yann Weber
12588a37ed
Added a dryrun option to the migration handler and solved a bug in the django patch file
hace 9 años
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
hace 9 años
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
hace 9 años
Yann Weber
8bea52d740
Code cleaning and adding features to generate models in application only when not testing with the MH
hace 9 años
Yann Weber
aa6e01bff0
Dirty comit of a djago MH that "works"
Code cleaning, commenting etc needed...
hace 9 años
Roland Haroutiounian
53eb1ac57d
[#46 ] Commented the to_sql methods
hace 9 años
Roland Haroutiounian
e63a4a8bdf
[#46 ] Changed the fieldtypes.py content to use Django field types instead of sqlalchemy's ones
hace 9 años
Roland Haroutiounian
fcd449d597
[#46 ] Changed the initialization process of the fieldtype classes
hace 9 años
Yann Weber
f8879901f1
Using uniq_name of component for naming Django models
hace 9 años
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 )
hace 9 años
Yann Weber
17c1eba918
Solved a bug about checking ranks and getting max rank
hace 9 años
Yann Weber
46dfe3a7ba
Added a new @property to EmComponent uniq_name
hace 9 años
Yann Weber
c126922ecd
Cleaning EmType.superiors() comments and variable name
hace 9 años
ArnAud
5fb9c8b7b6
EmComponent: get_max_rank() should return an int
hace 9 años
Yann Weber
e530211a1e
Comments update
hace 9 años
Yann Weber
0901c29a33
Bugfix on EmComponent.check()
hace 9 años
Yann Weber
9d77bb6a52
Rewrite tests for EmComponent and Model
hace 9 años
Yann Weber
d2f6509397
Checking type of model argument (without importing Model)
The check is done on the __class__.__name__ attr of model argument (maybe not a good solution ?)
hace 9 años
Roland Haroutiounian
1b3565d890
[Tests EmComponent] Added the support of MlString in check_equals
hace 9 años
Roland Haroutiounian
fd87cd8619
[Tests EmComponent] Started the implementation of the create process
hace 9 años
Roland Haroutiounian
8e12772546
[Tests - EmComponent] Added the reimplementation of the tests for the save method
It should be adjusted once the save method is implemented
hace 9 años