Roland Haroutiounian
4f8c7a22bb
[#61 ] Added the prototype for the get method in LeDataSource class
hace 9 años
Roland Haroutiounian
a0f8196e05
[#61 ] Added the LeDataSource file
hace 9 años
Yann Weber
c48147e732
Correct the _LeObject.get() method and add some methods to LeType
Now the _LeObject.get() method should be able to return LeType child classes instance
LeType has two new methods :
- LeTypes.datas() @property method that returns a dict(FIELDNAME:FIELDVALUE)
- LeType.populate() that fetch from datassource missing fieldvalues
hace 9 años
Yann Weber
0f0a636eac
Add LeObject._me_uid dict populate in LeFactory + code factorisation
hace 9 años
Yann Weber
76782b1b5b
BugFix in Model tests
An old string was given as argument to DummyMigrationHandler and was interpreted as debug = True
hace 9 años
Yann Weber
589d7f2eef
Changed the way LeFactory generates python code
Added a test on LeFactory generated code
hace 9 años
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
hace 9 años
Yann Weber
250aa9e0ff
Add a class attribute to LeObject that maps EditorialModel uid with LeType and LeClass python class
hace 9 años
Yann Weber
eba6e9d6cf
Deleted most of Django code/files
hace 9 años
ArnAud
fbd970a070
Model: add creation and modification date to common fields
hace 9 años
ArnAud
5babe2f6d7
migration handler SQL: use basic_type and fieldtypes method to create column definitions
hace 9 años
ArnAud
fdf8afc236
fieldtypes: add ftype class attribute
hace 9 años
Yann Weber
756b0e0b0b
Test were broken by previous commit...
hace 9 años
Yann Weber
4d445e876e
_LeObject.get() enhancement
hace 9 años
Yann Weber
6123d23be4
Update the _LeObject.get() method to handle relationnal filters
hace 9 años
Yann Weber
2860d8cf20
Add a ftype class attribute to EmFieldType objects
hace 9 años
Yann Weber
2c37a9bf46
Update the quer_filter spliting method to handle superior.nature field notation.
Update the associated tests
hace 9 años
Yann Weber
0c51d6a483
Added some class property to LeFactory generated classes to avoid Model calls
hace 9 años
Yann Weber
482378fb18
Started some method implementation form _LeObject and LeType
Methods are _LeObject.get() and LeType.check_datas()
hace 9 años
ArnAud
b4740208ca
Migration handler SQL: create common fields in object table
hace 9 años
ArnAud
a4dacc654a
classtype: use the same naming pattern for *_id fields
hace 9 años
ArnAud
0a0ebd69ea
migration handler SQL: use PrimaryKey name from classtypes.py configuration
hace 9 años
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.
hace 9 años
Yann Weber
9df9095da3
Add a test for EmField
Checking that internal='object' is reserved for common fields
hace 9 años
Yann Weber
94d4967642
Add common_fields and make the differences between common fields and default fields
hace 9 años
ArnAud
ce219de48a
Editorial Model: first shot at the SQL migration handler (bye-bye django)
hace 9 años
Yann Weber
24aa04a913
Added a _split_query method to _LeObject
This method split a string in a tuple(FIELD, OPERATOR, VALUE)
hace 9 años
Yann Weber
556a3d1f18
Removed a risk of circular import
hace 9 años
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
hace 9 años
Yann Weber
c0bea01d0e
Updated the django listfieldtype command (useless since we planned to remove django -_-) + disabling the LodelTestInstance calls to djangoMh
hace 9 años
Yann Weber
4eef4398a3
Updated some fieldtypes and added a primary key (pk) fieldtype
hace 9 años
Yann Weber
215b51a566
[untested, dev] Updated the code for leobject, leclass and letype
This commit is in "work in progress state" all the code is not consistent
hace 9 años
Yann Weber
896c061327
[LeFactory] changed the way LeType and LeClass stores fieldgroups, fields and fieldtypes
hace 9 años
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
hace 9 años
Yann Weber
4046af11eb
EmField enhancement in __init__
Add a check for the default value
Removed the _fieldtype_instance attribute
hace 9 años
Yann Weber
b521c2c7b6
Modified EmField and Model to fit with the new fieldtypes
hace 9 años
Yann Weber
5cd8e140bd
New version of EmFieldtype
Now fieldtypes are not derivated from EmField anymore
hace 9 años
ArnAud
28c068712a
LeObject: first shot at _prepare_filters()
hace 9 años
Yann Weber
16fa61fb8a
Enabling basic admin interface for dynamic django EmType models + bugfix on models save method
hace 9 años
Yann Weber
a9bf80d83d
Adding a second possible parent for the EmType rubrique in me.json
hace 9 años
Roland Haroutiounian
eb9cafa94b
Turned leobject/datasources into a module
hace 9 años
Roland Haroutiounian
996c4f4222
Added the init file to turn leobject into a module
hace 9 años
ArnAud
535c8b7e22
LeObject: begining of implementation
hace 9 años
ArnAud
6890375041
Databases: get rid of old and unused code
hace 9 años
ArnAud
f303c0c241
start of lodel1 migration tool
hace 9 años
ArnAud
6d3ca3e6a9
MlString: __repr__() now return __str__()
hace 9 años
Yann Weber
ebad5fae54
Moving random EM generation methods in a dedicated file
Creating a class RandomEm in EditorialModel/randomem.py
hace 9 años
Yann Weber
abb700b0c0
Added 2 invalid params for emclass_from_name() method
hace 9 años
Yann Weber
ea51650ab3
Added tests on Types hierarchy and selected field for migrate_handler() method
hace 9 años
Roland Haroutiounian
2ea37c3112
PEP8/PyLint on test_types.py
hace 9 años