Roland Haroutiounian
8d3760f98d
[#61 ] Corrected the ftype in the bool fieldtype
9 lat temu
Yann Weber
1c4e2ddba8
Some Doxygen comments fix
9 lat temu
Yann Weber
0be8db4d00
Complete the LeFactory generated code tests, add a __hash__ method for fieldtypes
9 lat temu
Yann Weber
76782b1b5b
BugFix in Model tests
An old string was given as argument to DummyMigrationHandler and was interpreted as debug = True
9 lat temu
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 lat temu
Yann Weber
eba6e9d6cf
Deleted most of Django code/files
9 lat temu
ArnAud
fbd970a070
Model: add creation and modification date to common fields
9 lat temu
ArnAud
5babe2f6d7
migration handler SQL: use basic_type and fieldtypes method to create column definitions
9 lat temu
ArnAud
fdf8afc236
fieldtypes: add ftype class attribute
9 lat temu
Yann Weber
2860d8cf20
Add a ftype class attribute to EmFieldType objects
9 lat temu
Yann Weber
0c51d6a483
Added some class property to LeFactory generated classes to avoid Model calls
9 lat temu
ArnAud
b4740208ca
Migration handler SQL: create common fields in object table
9 lat temu
ArnAud
a4dacc654a
classtype: use the same naming pattern for *_id fields
9 lat temu
ArnAud
0a0ebd69ea
migration handler SQL: use PrimaryKey name from classtypes.py configuration
9 lat temu
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 lat temu
Yann Weber
9df9095da3
Add a test for EmField
Checking that internal='object' is reserved for common fields
9 lat temu
Yann Weber
94d4967642
Add common_fields and make the differences between common fields and default fields
9 lat temu
ArnAud
ce219de48a
Editorial Model: first shot at the SQL migration handler (bye-bye django)
9 lat temu
Yann Weber
556a3d1f18
Removed a risk of circular import
9 lat temu
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 lat temu
Yann Weber
c0bea01d0e
Updated the django listfieldtype command (useless since we planned to remove django -_-) + disabling the LodelTestInstance calls to djangoMh
9 lat temu
Yann Weber
4eef4398a3
Updated some fieldtypes and added a primary key (pk) fieldtype
9 lat temu
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 lat temu
Yann Weber
4046af11eb
EmField enhancement in __init__
Add a check for the default value
Removed the _fieldtype_instance attribute
9 lat temu
Yann Weber
b521c2c7b6
Modified EmField and Model to fit with the new fieldtypes
9 lat temu
Yann Weber
5cd8e140bd
New version of EmFieldtype
Now fieldtypes are not derivated from EmField anymore
9 lat temu
Yann Weber
16fa61fb8a
Enabling basic admin interface for dynamic django EmType models + bugfix on models save method
9 lat temu
Yann Weber
a9bf80d83d
Adding a second possible parent for the EmType rubrique in me.json
9 lat temu
ArnAud
6890375041
Databases: get rid of old and unused code
9 lat temu
ArnAud
f303c0c241
start of lodel1 migration tool
9 lat temu
Yann Weber
ebad5fae54
Moving random EM generation methods in a dedicated file
Creating a class RandomEm in EditorialModel/randomem.py
9 lat temu
Yann Weber
abb700b0c0
Added 2 invalid params for emclass_from_name() method
9 lat temu
Yann Weber
ea51650ab3
Added tests on Types hierarchy and selected field for migrate_handler() method
9 lat temu
Roland Haroutiounian
2ea37c3112
PEP8/PyLint on test_types.py
9 lat temu
Roland Haroutiounian
233ce905fc
PEP8/PyLint on test_model.py
9 lat temu
Roland Haroutiounian
73a01889d2
PEP8/PyLint on test_component.py
9 lat temu
Roland Haroutiounian
35d9d698b2
PEP8/PyLint on test_classes.py
9 lat temu
Roland Haroutiounian
bbe7a88842
PEP8/PyLint on migrationhandler/dummy.py
9 lat temu
Roland Haroutiounian
d378a38bdf
PEP8 / PyLint on migrationhandler/django.py
9 lat temu
Roland Haroutiounian
71e588527c
PEP8/PyLint on fieldtype classes
9 lat temu
Roland Haroutiounian
352735200d
PEP8/PyLint on fieldtypes/char.py
9 lat temu
Roland Haroutiounian
5266c9ccf2
PEP8/PyLint on fieldtypes/bool.py
9 lat temu
Roland Haroutiounian
8058785023
PEP8/Pylint on components.py
9 lat temu
Roland Haroutiounian
33a7b6c4a4
PEP8/Pylint on types.py
9 lat temu
Roland Haroutiounian
49f4f210b6
Code cleaning (PEP8 / Pylint) on fields.py
9 lat temu
Roland Haroutiounian
20c152c58b
PEP8/Pylint on classtypes.py
9 lat temu
Yann Weber
06bd3b141d
Model construct enhancement with backend and MH inheritance
Every backend and MH are now subclasses of dummy ones. This allow to check the type with issubclass.
9 lat temu
Roland Haroutiounian
063e202e60
[#54 ] revert
9 lat temu
Roland Haroutiounian
a225a63d2e
[#54 ] Activated DjangoMigrationHandler to the tests of EmClass
9 lat temu
Yann Weber
a502965103
Bugfix on model
Make most of the model tests pass (except the tests about the backend calls and set)
9 lat temu