1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-03-14 15:22:02 +01:00
Commit graph

455 commits

Author SHA1 Message Date
Yann
116bc2765d MySQL migration handler enhancement
Add linked type attribute to LeClass childs classes
2015-10-30 16:32:26 +01:00
Yann
7b0df11496 Removing rel2type fields and rel2type attributes fields from LeClass and LeType fields lists 2015-10-30 14:47:16 +01:00
Yann
6df43be9b9 Solved a bug in the mysql MH (triggers where generated for common fields) 2015-10-29 16:53:11 +01:00
Yann
bb80f3e001 Modified the random em generator for a better rel2type generation 2015-10-29 16:52:31 +01:00
Yann
36ffdfdf0c Some bugfix in components.max_rank model.create_component in the random em generator and in the file fieldtype 2015-10-29 16:28:23 +01:00
Yann
7e53eff0b1 Change the MySQL connector and updates the requirements.txt 2015-10-29 16:02:29 +01:00
Yann
95c1870f17 Add rel2type attribute handling 2015-10-29 15:53:14 +01:00
Yann
4f8f13e41f Make the MH more fault tolerant and add the foreign keys support 2015-10-29 14:58:52 +01:00
Yann
1a50842a7e First commit of an MySQL migration handler 2015-10-29 12:11:14 +01:00
Yann
3854cdcf82 Bugfix in EmClass : the dict EditorialModel.classtypes.common_fields was modified by Model.load() method 2015-10-29 12:11:14 +01:00
Yann
e207076363 Add a check function for integer fieldtype and make some bugfix in LeType 2015-10-23 14:22:06 +02:00
Yann
6bc80ce40b Bugfix on pk fieldtype 2015-10-23 11:33:06 +02:00
Yann
7655aa7d54 GraphVizBackend bugfix 2015-10-23 11:17:50 +02:00
Roland Haroutiounian
8d3760f98d [#61] Corrected the ftype in the bool fieldtype 2015-10-22 13:28:45 +02:00
Yann
1c4e2ddba8 Some Doxygen comments fix 2015-10-22 11:25:23 +02:00
Yann
0be8db4d00 Complete the LeFactory generated code tests, add a __hash__ method for fieldtypes 2015-10-22 09:55:20 +02:00
Yann
76782b1b5b BugFix in Model tests
An old string was given as argument to DummyMigrationHandler and was interpreted as debug = True
2015-10-21 09:50:26 +02:00
Yann
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
2015-10-20 17:10:40 +02:00
Yann
eba6e9d6cf Deleted most of Django code/files 2015-10-16 17:05:29 +02:00
ArnAud
fbd970a070 Model: add creation and modification date to common fields 2015-10-16 17:02:14 +02:00
ArnAud
5babe2f6d7 migration handler SQL: use basic_type and fieldtypes method to create column definitions 2015-10-16 17:01:27 +02:00
ArnAud
fdf8afc236 fieldtypes: add ftype class attribute 2015-10-16 17:00:10 +02:00
Yann
2860d8cf20 Add a ftype class attribute to EmFieldType objects 2015-10-16 16:05:45 +02:00
Yann
0c51d6a483 Added some class property to LeFactory generated classes to avoid Model calls 2015-10-16 14:05:18 +02:00
ArnAud
b4740208ca Migration handler SQL: create common fields in object table 2015-10-16 13:47:17 +02:00
ArnAud
a4dacc654a classtype: use the same naming pattern for *_id fields 2015-10-16 13:46:29 +02:00
ArnAud
0a0ebd69ea migration handler SQL: use PrimaryKey name from classtypes.py configuration 2015-10-16 11:42:31 +02:00
Yann
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.
2015-10-16 11:14:15 +02:00
Yann
9df9095da3 Add a test for EmField
Checking that internal='object' is reserved for common fields
2015-10-15 17:32:39 +02:00
Yann
94d4967642 Add common_fields and make the differences between common fields and default fields 2015-10-15 17:30:23 +02:00
ArnAud
ce219de48a Editorial Model: first shot at the SQL migration handler (bye-bye django) 2015-10-15 17:21:50 +02:00
Yann
556a3d1f18 Removed a risk of circular import 2015-10-15 16:27:34 +02:00
Yann
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
2015-10-15 15:07:56 +02:00
Yann
c0bea01d0e Updated the django listfieldtype command (useless since we planned to remove django -_-) + disabling the LodelTestInstance calls to djangoMh 2015-10-15 13:45:08 +02:00
Yann
4eef4398a3 Updated some fieldtypes and added a primary key (pk) fieldtype 2015-10-15 13:44:03 +02:00
Yann
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
2015-10-14 16:18:06 +02:00
Yann
4046af11eb EmField enhancement in __init__
Add a check for the default value
Removed the _fieldtype_instance attribute
2015-10-14 15:32:42 +02:00
Yann
b521c2c7b6 Modified EmField and Model to fit with the new fieldtypes 2015-10-14 15:11:00 +02:00
Yann
5cd8e140bd New version of EmFieldtype
Now fieldtypes are not derivated from EmField anymore
2015-10-14 14:05:36 +02:00
Yann
16fa61fb8a Enabling basic admin interface for dynamic django EmType models + bugfix on models save method 2015-10-09 17:19:12 +02:00
Yann
a9bf80d83d Adding a second possible parent for the EmType rubrique in me.json 2015-10-09 17:19:12 +02:00
ArnAud
6890375041 Databases: get rid of old and unused code 2015-10-08 10:51:40 +02:00
ArnAud
f303c0c241 start of lodel1 migration tool 2015-10-08 10:43:55 +02:00
Yann
ebad5fae54 Moving random EM generation methods in a dedicated file
Creating a class RandomEm in EditorialModel/randomem.py
2015-10-01 13:49:23 +02:00
Yann
abb700b0c0 Added 2 invalid params for emclass_from_name() method 2015-10-01 12:13:18 +02:00
Yann
ea51650ab3 Added tests on Types hierarchy and selected field for migrate_handler() method 2015-10-01 12:10:47 +02:00
Roland Haroutiounian
2ea37c3112 PEP8/PyLint on test_types.py 2015-09-30 15:00:40 +02:00
Roland Haroutiounian
233ce905fc PEP8/PyLint on test_model.py 2015-09-30 14:59:45 +02:00
Roland Haroutiounian
73a01889d2 PEP8/PyLint on test_component.py 2015-09-30 14:50:44 +02:00
Roland Haroutiounian
35d9d698b2 PEP8/PyLint on test_classes.py 2015-09-30 14:49:40 +02:00