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
6ed2bb1e72
Merge branch 'django_mh'
Adding the django migration handler
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
9a99941696
Merge branch 't46'
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
Yann Weber
17c1eba918
Solved a bug about checking ranks and getting max rank
9 years ago
Yann Weber
46dfe3a7ba
Added a new @property to EmComponent uniq_name
9 years ago
Yann Weber
c126922ecd
Cleaning EmType.superiors() comments and variable name
9 years ago
ArnAud
5fb9c8b7b6
EmComponent: get_max_rank() should return an int
9 years ago
Yann Weber
661f7f24ea
Merge branch 'new_me'
9 years ago
Yann Weber
e530211a1e
Comments update
9 years ago
Yann Weber
0901c29a33
Bugfix on EmComponent.check()
9 years ago
Yann Weber
9d77bb6a52
Rewrite tests for EmComponent and Model
9 years ago
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 ?)
9 years ago
Roland Haroutiounian
1b3565d890
[Tests EmComponent] Added the support of MlString in check_equals
9 years ago
Roland Haroutiounian
fd87cd8619
[Tests EmComponent] Started the implementation of the create process
9 years ago
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
9 years ago
Roland Haroutiounian
79b0369007
[Tests EmComponent]
9 years ago
Roland Haroutiounian
ee9a082f42
[Tests - EmComponent] Tests on the init process
9 years ago
Roland Haroutiounian
615e0e8f86
[Tests - EmFieldGroup] Cleaned old and useless comments in the code
9 years ago
Roland Haroutiounian
a9cbd03e17
[Tests - EmFieldGroup] Rewrote the tests for the fields() method of the class
9 years ago
Driky
ac6f791508
Réimplémentation du test TestEmClassCreation
9 years ago
Roland Haroutiounian
e4038f4f3a
[Tests on EmFieldgroup] Added the creation process tests for this class
9 years ago
Roland Haroutiounian
f1d819c254
[EmFieldGroup] Changed the assertions for the init tests with bad arguments
9 years ago
Roland Haroutiounian
03113ae8bf
Changes in the tests for the fieldgroups
9 years ago
Driky
cee5b53445
Correction syntax sur la nouvelle méthode d'ouverture du fichier json
9 years ago
Driky
b94f867764
Correction du warning sur la non fermeture du fichier json du quel est chargé le ME
9 years ago
Roland Haroutiounian
91e12a9df3
Merge branch 'new_me_tests' into new_me
9 years ago
Roland Haroutiounian
ba2ac6880c
[Tests] Changed the tests for the EmField class using the new Model object
9 years ago
Roland Haroutiounian
113deb302d
[EmComponent] added a test to not take uids into account in the hash computation process
9 years ago