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 年之前
Yann Weber
0c51d6a483
Added some class property to LeFactory generated classes to avoid Model calls
9 年之前
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 年之前
Yann Weber
94d4967642
Add common_fields and make the differences between common fields and default fields
9 年之前
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 年之前
Yann Weber
4eef4398a3
Updated some fieldtypes and added a primary key (pk) fieldtype
9 年之前
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 年之前
Yann Weber
4046af11eb
EmField enhancement in __init__
Add a check for the default value
Removed the _fieldtype_instance attribute
9 年之前
Yann Weber
b521c2c7b6
Modified EmField and Model to fit with the new fieldtypes
9 年之前
Roland Haroutiounian
49f4f210b6
Code cleaning (PEP8 / Pylint) on fields.py
9 年之前
Roland Haroutiounian
d2d193e58f
[#50 ] Added the management of "integer" AND "int" in EmField (in the get_field_class method)
9 年之前
Yann Weber
18695e3a72
Implement the BackendJson save method
9 年之前
Yann Weber
d199d571bd
Cleaning & commenting + adding warning
9 年之前
Yann Weber
2b6615775c
Added a django admin command to list fieldtypes
9 年之前
Yann Weber
60e23b4946
[not tested] Added 3 more fieldtypes : file, datetime, text
9 年之前
Yann Weber
773afc5b2c
New version (again) of the fieldtypes
9 年之前
Yann Weber
4c0b8d3279
New graphviz backend + some methods added to some components
9 年之前
Roland Haroutiounian
946cc49a88
Added default values for django models Field types
9 年之前
Roland Haroutiounian
a318ef2dca
Code cleaning
9 年之前
Roland Haroutiounian
ce07a938b7
Added the mapping of the django models field types in the EmField class
9 年之前
Roland Haroutiounian
8b2bd59daf
[EmField] pep8+pylint
9 年之前
Yann Weber
ed9133016f
Fixing component deletion
9 年之前
Yann Weber
195cca24a4
Implementing check methods for each EmComponent child (and EmComponent)
No extended checks was done. Only tested if the check passes without syntax error and without failing with no reason
9 年之前
Roland Haroutiounian
7e35eeedb7
[EmField] pep8+pylint
9 年之前
Yann Weber
405dd318dd
Added type check in EmComponent and childs class type check. Added some cast functions to Backend
9 年之前
Yann Weber
b6ef37752f
Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes
9 年之前
Roland Haroutiounian
b668556c3f
[#44 ] Ajout d'un début de méthode check et appel de celle-ci dans le delete
9 年之前
Roland Haroutiounian
a5738476e0
[EmField] pep8 + pylint
9 年之前
Roland Haroutiounian
df6c0b001d
[EmField] Change of the delete method (uses the model member of the class to perform that action)
9 年之前
Roland Haroutiounian
867ad023be
[ClassTypes et Fields] Mise en commentaire des imports obsolètes et conformité pep8/pylint
9 年之前
Roland Haroutiounian
116795af12
Passage en commentaire du code obsolète
9 年之前
Roland Haroutiounian
a7bd17853f
Nettoyage de EmField
- Suppression du create / delete et des autres méthodes associées
- Suppression des imports qui sont devenus obsolètes
9 年之前
Yann Weber
889abc8547
Put the database configuration asinstance attribute of EmComponent
9 年之前
ArnAud
bd8bc7e814
EmFields: unecessary comment
9 年之前
ArnAud
09e74f3ec1
EmField: unused import + whitespace
9 年之前
Yann Weber
47ce122e93
Changed icon field to EmField_icon in EmClass and EmField. Added sortcolumn argument for EmType and EmClass.
9 年之前
Yann Weber
27d178e531
Code factorization and create methods for EmComponent and childs changes
Behaviour changed for EmComponent and childs create method :
- Takes care of duplicated names at creation
- Handle all the checks in EmComponent method
Factorization of EmField.get_class_table() method
Added a @property method class_table_name to EmClass
9 年之前
Yann Weber
3f8aff6813
EmField add_column code factorization
9 年之前
Driky
347a302e85
Correction: ajout de la valeur de ranked_in pour chaque classe 'em_*'
9 年之前
Roland Haroutiounian
e46ca292c8
[EmField] Suppression de l'appel à SqlWrapper
9 年之前
Roland Haroutiounian
0b1f520647
Suppression d'une variable non utilisée dans la méthode add_field_to_column_table() de EmField
9 年之前
Roland Haroutiounian
ec69ca5837
Optimisations de code dans EmField
9 年之前
Roland Haroutiounian
153dec2537
EmField : remplacement des appels getDbE() par db_engine()
9 年之前
Roland Haroutiounian
1b7b5262dc
PEP8 sur EmField
9 年之前
Roland Haroutiounian
bbaa20c8ba
Modification d'un nom de fonction (passage en lowercase)
9 年之前
Roland Haroutiounian
6db8376afb
Nettoyage du code de EmField
9 年之前
Yann Weber
16a962fb3f
Implemented DropColumn for sqlite
9 年之前
Yann Weber
a042306c14
Delete implementation for EmClass and EmField
The EmField version cannot be tested yet (drop column not yet implemented for sqlite in Database.sqlalter)
9 年之前
Roland Haroutiounian
edcfd5b8cd
Modification de la recherche du nom de classe dans fields
9 年之前
Roland Haroutiounian
d9c3f8e86c
[#11 ] Modification de la méthode create => passage en arguments positionnels
9 年之前