Yann Weber
d35f499e3d
Deleted useless code
9 years ago
Yann Weber
39401184d0
Add a new method __purge_db() to the migration handler
9 years ago
ArnAud
c8d9b9042c
Emtype: no more fieldgroups
9 years ago
Yann Weber
54ba4cc3c5
Implements get_relation in LeDatasourceSQL + some small changes in MySQL and MH
9 years ago
Yann Weber
24b758af9b
Updated some MySQL properties and MigrationHandler stuff
9 years ago
Yann Weber
3e3114a0b2
Better comments for MySQL MH
9 years ago
Roland Haroutiounian
cbd3d89426
[#63 ] PEP8/Pylint
9 years ago
Roland Haroutiounian
518cfad9cd
[#63 ] Mysql migration handler and ledatasourceSQL are using MySQL DataSource
9 years ago
Yann Weber
5236429efd
Update on graphviz backend and random em generator given the changes in the EM (fieldgroups deletion)
9 years ago
Yann Weber
d3b1b4b659
Updated the graphviz backend
9 years ago
Yann Weber
10379c6a95
Fieldgroups are deleted
9 years ago
Yann Weber
cb7a37e7a2
Add checks in EmField, add tests for EmField + bugfix in check in Model.create_component
Checks for EmField :
- checks that the name is uniq in an EmClass
- checks that a relation EmClass <- rel2type -> EmType is uniq
9 years ago
Yann Weber
116bc2765d
MySQL migration handler enhancement
Add linked type attribute to LeClass childs classes
9 years ago
Yann Weber
7b0df11496
Removing rel2type fields and rel2type attributes fields from LeClass and LeType fields lists
9 years ago
Yann Weber
6df43be9b9
Solved a bug in the mysql MH (triggers where generated for common fields)
9 years ago
Yann Weber
bb80f3e001
Modified the random em generator for a better rel2type generation
9 years ago
Yann Weber
36ffdfdf0c
Some bugfix in components.max_rank model.create_component in the random em generator and in the file fieldtype
9 years ago
Yann Weber
7e53eff0b1
Change the MySQL connector and updates the requirements.txt
9 years ago
Yann Weber
95c1870f17
Add rel2type attribute handling
9 years ago
Yann Weber
4f8f13e41f
Make the MH more fault tolerant and add the foreign keys support
9 years ago
Yann Weber
1a50842a7e
First commit of an MySQL migration handler
9 years ago
Yann Weber
3854cdcf82
Bugfix in EmClass : the dict EditorialModel.classtypes.common_fields was modified by Model.load() method
9 years ago
Yann Weber
e207076363
Add a check function for integer fieldtype and make some bugfix in LeType
9 years ago
Yann Weber
6bc80ce40b
Bugfix on pk fieldtype
9 years ago
Yann Weber
7655aa7d54
GraphVizBackend bugfix
9 years ago
Roland Haroutiounian
8d3760f98d
[#61 ] Corrected the ftype in the bool fieldtype
9 years ago
Yann Weber
1c4e2ddba8
Some Doxygen comments fix
9 years ago
Yann Weber
0be8db4d00
Complete the LeFactory generated code tests, add a __hash__ method for fieldtypes
9 years ago
Yann Weber
76782b1b5b
BugFix in Model tests
An old string was given as argument to DummyMigrationHandler and was interpreted as debug = True
9 years ago
Yann Weber
baeff1f7e6
Implements the EmClass::linked_type() method and add 2 new property method to EmField : em_class and fieldgroup
Associated tests has been added/updated
9 years ago
Yann Weber
eba6e9d6cf
Deleted most of Django code/files
9 years ago
ArnAud
fbd970a070
Model: add creation and modification date to common fields
9 years ago
ArnAud
5babe2f6d7
migration handler SQL: use basic_type and fieldtypes method to create column definitions
9 years ago
ArnAud
fdf8afc236
fieldtypes: add ftype class attribute
9 years ago
Yann Weber
2860d8cf20
Add a ftype class attribute to EmFieldType objects
9 years ago
Yann Weber
0c51d6a483
Added some class property to LeFactory generated classes to avoid Model calls
9 years ago
ArnAud
b4740208ca
Migration handler SQL: create common fields in object table
9 years ago
ArnAud
a4dacc654a
classtype: use the same naming pattern for *_id fields
9 years ago
ArnAud
0a0ebd69ea
migration handler SQL: use PrimaryKey name from classtypes.py configuration
9 years ago
Yann Weber
384ffb006b
Default fields processing changes + updated the me.json
Now on load default fields for EmClass are created. The EmClass.check method create them if they are not present.
9 years ago
Yann Weber
9df9095da3
Add a test for EmField
Checking that internal='object' is reserved for common fields
9 years ago
Yann Weber
94d4967642
Add common_fields and make the differences between common fields and default fields
9 years ago
ArnAud
ce219de48a
Editorial Model: first shot at the SQL migration handler (bye-bye django)
9 years ago
Yann Weber
556a3d1f18
Removed a risk of circular import
9 years ago
Yann Weber
ad1beff75d
Added default fields for EmClass + fixing some tests and EmClass function that were broken
Added default fields for EmClass, they are listed by classtype in EmClassType
Fixing some tests (testing that a new EmClass has no fieldgroups)
Fixing the delete_check of EmClass. Now an EmClass can be deleted if it contains only default fieldgroup and default fields
9 years ago
Yann Weber
c0bea01d0e
Updated the django listfieldtype command (useless since we planned to remove django -_-) + disabling the LodelTestInstance calls to djangoMh
9 years ago
Yann Weber
4eef4398a3
Updated some fieldtypes and added a primary key (pk) fieldtype
9 years ago
Yann Weber
f27bb26f9a
Introduction of LeFactory and its generatePython method
LeFactory.generatePython() is a method that generate LeObject code and python classes for each EmClass and EmType in an EditorialModel
9 years ago
Yann Weber
4046af11eb
EmField enhancement in __init__
Add a check for the default value
Removed the _fieldtype_instance attribute
9 years ago
Yann Weber
b521c2c7b6
Modified EmField and Model to fit with the new fieldtypes
9 years ago