Yann
482378fb18
Started some method implementation form _LeObject and LeType
...
Methods are _LeObject.get() and LeType.check_datas()
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
24aa04a913
Added a _split_query method to _LeObject
...
This method split a string in a tuple(FIELD, OPERATOR, VALUE)
2015-10-15 17:17:47 +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
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
2015-10-14 17:30:10 +02:00
Yann
896c061327
[LeFactory] changed the way LeType and LeClass stores fieldgroups, fields and fieldtypes
2015-10-14 16:59:36 +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
ArnAud
28c068712a
LeObject: first shot at _prepare_filters()
2015-10-14 10:50:41 +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
Roland Haroutiounian
eb9cafa94b
Turned leobject/datasources into a module
2015-10-09 09:21:46 +02:00
Roland Haroutiounian
996c4f4222
Added the init file to turn leobject into a module
2015-10-09 09:08:27 +02:00
ArnAud
535c8b7e22
LeObject: begining of implementation
2015-10-08 17:22:46 +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
ArnAud
6d3ca3e6a9
MlString: __repr__() now return __str__()
2015-10-08 10:41:24 +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
Roland Haroutiounian
bbe7a88842
PEP8/PyLint on migrationhandler/dummy.py
2015-09-30 14:47:44 +02:00
Roland Haroutiounian
d378a38bdf
PEP8 / PyLint on migrationhandler/django.py
2015-09-30 14:46:29 +02:00
Roland Haroutiounian
71e588527c
PEP8/PyLint on fieldtype classes
2015-09-30 14:16:45 +02:00
Roland Haroutiounian
352735200d
PEP8/PyLint on fieldtypes/char.py
2015-09-30 14:10:27 +02:00
Roland Haroutiounian
5266c9ccf2
PEP8/PyLint on fieldtypes/bool.py
2015-09-30 14:09:12 +02:00
Roland Haroutiounian
8058785023
PEP8/Pylint on components.py
2015-09-30 12:02:29 +02:00
Roland Haroutiounian
33a7b6c4a4
PEP8/Pylint on types.py
2015-09-30 11:58:11 +02:00
Roland Haroutiounian
49f4f210b6
Code cleaning (PEP8 / Pylint) on fields.py
2015-09-30 11:54:14 +02:00
Roland Haroutiounian
20c152c58b
PEP8/Pylint on classtypes.py
2015-09-30 11:45:37 +02:00
Yann
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.
2015-09-25 17:29:18 +02:00
Roland Haroutiounian
063e202e60
[ #54 ] revert
2015-09-25 17:04:21 +02:00
Roland Haroutiounian
a225a63d2e
[ #54 ] Activated DjangoMigrationHandler to the tests of EmClass
2015-09-25 17:00:18 +02:00
Yann
a502965103
Bugfix on model
...
Make most of the model tests pass (except the tests about the backend calls and set)
2015-09-25 16:57:11 +02:00
Yann
5bccb6bae2
Updates on Model tests
2015-09-25 16:56:56 +02:00
Yann
7b1f3dca38
Add tests for Model
...
On create_component on delete_component on set_backend and on migrate_handler
2015-09-25 16:40:15 +02:00