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
Yann Weber
5cd8e140bd
New version of EmFieldtype
Now fieldtypes are not derivated from EmField anymore
9 years ago
ArnAud
28c068712a
LeObject: first shot at _prepare_filters()
9 years ago
Yann Weber
16fa61fb8a
Enabling basic admin interface for dynamic django EmType models + bugfix on models save method
9 years ago
Yann Weber
a9bf80d83d
Adding a second possible parent for the EmType rubrique in me.json
9 years ago
Roland Haroutiounian
eb9cafa94b
Turned leobject/datasources into a module
9 years ago
Roland Haroutiounian
996c4f4222
Added the init file to turn leobject into a module
9 years ago
ArnAud
535c8b7e22
LeObject: begining of implementation
9 years ago
ArnAud
6890375041
Databases: get rid of old and unused code
9 years ago
ArnAud
f303c0c241
start of lodel1 migration tool
9 years ago
ArnAud
6d3ca3e6a9
MlString: __repr__() now return __str__()
9 years ago
Yann Weber
ebad5fae54
Moving random EM generation methods in a dedicated file
Creating a class RandomEm in EditorialModel/randomem.py
9 years ago
Yann Weber
abb700b0c0
Added 2 invalid params for emclass_from_name() method
9 years ago
Yann Weber
ea51650ab3
Added tests on Types hierarchy and selected field for migrate_handler() method
9 years ago
Roland Haroutiounian
2ea37c3112
PEP8/PyLint on test_types.py
9 years ago
Roland Haroutiounian
233ce905fc
PEP8/PyLint on test_model.py
9 years ago
Roland Haroutiounian
73a01889d2
PEP8/PyLint on test_component.py
9 years ago
Roland Haroutiounian
35d9d698b2
PEP8/PyLint on test_classes.py
9 years ago
Roland Haroutiounian
bbe7a88842
PEP8/PyLint on migrationhandler/dummy.py
9 years ago
Roland Haroutiounian
d378a38bdf
PEP8 / PyLint on migrationhandler/django.py
9 years ago
Roland Haroutiounian
71e588527c
PEP8/PyLint on fieldtype classes
9 years ago
Roland Haroutiounian
352735200d
PEP8/PyLint on fieldtypes/char.py
9 years ago
Roland Haroutiounian
5266c9ccf2
PEP8/PyLint on fieldtypes/bool.py
9 years ago
Roland Haroutiounian
8058785023
PEP8/Pylint on components.py
9 years ago
Roland Haroutiounian
33a7b6c4a4
PEP8/Pylint on types.py
9 years ago
Roland Haroutiounian
49f4f210b6
Code cleaning (PEP8 / Pylint) on fields.py
9 years ago
Roland Haroutiounian
20c152c58b
PEP8/Pylint on classtypes.py
9 years ago
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 years ago
Roland Haroutiounian
063e202e60
[#54 ] revert
9 years ago
Roland Haroutiounian
a225a63d2e
[#54 ] Activated DjangoMigrationHandler to the tests of EmClass
9 years ago
Yann Weber
a502965103
Bugfix on model
Make most of the model tests pass (except the tests about the backend calls and set)
9 years ago
Yann Weber
5bccb6bae2
Updates on Model tests
9 years ago
Yann Weber
7b1f3dca38
Add tests for Model
On create_component on delete_component on set_backend and on migrate_handler
9 years ago
Yann Weber
2dc226c65a
Fixed a bug in set_rank()
When the list is empty new_rank is > get_max_rank, because get_max_rank returns -1
9 years ago
Yann Weber
eba33c3ecb
Adding some tests for Model
9 years ago
Roland Haroutiounian
ebf07e197f
[#54 ] Code cleaning
9 years ago
Roland Haroutiounian
a71fd7293f
Merge branch 't54'
9 years ago
Roland Haroutiounian
4b42aaf282
[#54 ] Deleted the use of an obsolete exception
9 years ago
Roland Haroutiounian
896c7821ce
[#54 ] added the migration handler in the testing process
9 years ago
Roland Haroutiounian
2813db64c5
[#54 ] Changed the test value for next id in the Editorial model used for tests
9 years ago
Roland Haroutiounian
6b6ea5e13b
[#54 ] Changed the tests for EmClass
9 years ago
Roland Haroutiounian
3bb0dc70e1
[#54 ] Changed the expected id of a newly created class in the TestEmClassCreation class
9 years ago
ArnAud
b2fc148e08
README : install documentation for test
9 years ago
ArnAud
332e771411
EmComponent : test_component less verbose
9 years ago
ArnAud
d34eb72490
Add a lint script used to test pep8 and lint error
usage ./lint path/to/file.py
9 years ago
ArnAud
1911be866f
JsonBackend: add possibility to use a json string
9 years ago
Yann Weber
c37a5b5425
Put the django migration handler in dryrun (simulation) mode for EM tests
9 years ago
Yann Weber
58837a0ed4
Fix modify_rank and associated tests
Now modify_rank don't raise anymore when too big/small modifier is given but do its best to make a valid modification
The modify_rank tests (and the __hash__ __cmp__ tests) has been modified to fit this new behavior
9 years ago