1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-14 18:09:17 +01:00
Commit graph

65 commits

Author SHA1 Message Date
Roland Haroutiounian
49f4f210b6 Code cleaning (PEP8 / Pylint) on fields.py 2015-09-30 11:54:14 +02:00
Roland Haroutiounian
d2d193e58f [#50] Added the management of "integer" AND "int" in EmField (in the get_field_class method) 2015-09-23 14:48:05 +02:00
Yann
18695e3a72 Implement the BackendJson save method 2015-09-18 12:23:00 +02:00
Yann
d199d571bd Cleaning & commenting + adding warning 2015-09-18 11:17:47 +02:00
Yann
2b6615775c Added a django admin command to list fieldtypes 2015-09-17 16:24:17 +02:00
Yann
60e23b4946 [not tested] Added 3 more fieldtypes : file, datetime, text 2015-09-17 15:49:11 +02:00
Yann
773afc5b2c New version (again) of the fieldtypes 2015-09-17 15:10:22 +02:00
Yann
4c0b8d3279 New graphviz backend + some methods added to some components 2015-09-17 12:00:48 +02:00
Roland Haroutiounian
946cc49a88 Added default values for django models Field types 2015-09-16 17:31:43 +02:00
Roland Haroutiounian
a318ef2dca Code cleaning 2015-09-16 15:26:47 +02:00
Roland Haroutiounian
ce07a938b7 Added the mapping of the django models field types in the EmField class 2015-09-16 15:25:18 +02:00
Roland Haroutiounian
8b2bd59daf [EmField] pep8+pylint 2015-07-29 10:55:46 +02:00
Yann
ed9133016f Fixing component deletion 2015-07-24 16:50:24 +02:00
Yann
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
2015-07-24 15:42:24 +02:00
Roland Haroutiounian
7e35eeedb7 [EmField] pep8+pylint 2015-07-24 13:45:47 +02:00
Yann
405dd318dd Added type check in EmComponent and childs class type check. Added some cast functions to Backend 2015-07-24 12:46:04 +02:00
Yann
b6ef37752f Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes 2015-07-24 12:03:39 +02:00
Roland Haroutiounian
b668556c3f [#44] Ajout d'un début de méthode check et appel de celle-ci dans le delete 2015-07-24 11:13:02 +02:00
Roland Haroutiounian
a5738476e0 [EmField] pep8 + pylint 2015-07-23 16:24:25 +02:00
Roland Haroutiounian
df6c0b001d [EmField] Change of the delete method (uses the model member of the class to perform that action) 2015-07-23 14:26:46 +02:00
Roland Haroutiounian
867ad023be [ClassTypes et Fields] Mise en commentaire des imports obsolètes et conformité pep8/pylint 2015-07-17 11:21:22 +02:00
Roland Haroutiounian
116795af12 Passage en commentaire du code obsolète 2015-07-16 11:43:23 +02:00
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
2015-07-16 10:34:23 +02:00
Yann
9cec5af1fa Merge branch 'component_db_instance_attr'
Conflicts:
	EditorialModel/classes.py
	EditorialModel/types.py
2015-07-09 17:37:43 +02:00
Yann
889abc8547 Put the database configuration asinstance attribute of EmComponent 2015-07-09 17:30:21 +02:00
ArnAud
bd8bc7e814 EmFields: unecessary comment 2015-07-09 16:47:56 +02:00
ArnAud
09e74f3ec1 EmField: unused import + whitespace 2015-07-09 16:37:13 +02:00
Yann
47ce122e93 Changed icon field to EmField_icon in EmClass and EmField. Added sortcolumn argument for EmType and EmClass. 2015-07-03 12:21:59 +02:00
Yann
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
2015-07-02 13:38:15 +02:00
Yann
3f8aff6813 EmField add_column code factorization 2015-07-02 11:17:43 +02:00
Driky
347a302e85 Correction: ajout de la valeur de ranked_in pour chaque classe 'em_*' 2015-07-01 16:29:36 +02:00
Roland Haroutiounian
e46ca292c8 [EmField] Suppression de l'appel à SqlWrapper 2015-07-01 15:38:14 +02:00
Roland Haroutiounian
0b1f520647 Suppression d'une variable non utilisée dans la méthode add_field_to_column_table() de EmField 2015-07-01 10:41:27 +02:00
Roland Haroutiounian
ec69ca5837 Optimisations de code dans EmField 2015-07-01 10:07:55 +02:00
Roland Haroutiounian
153dec2537 EmField : remplacement des appels getDbE() par db_engine() 2015-07-01 09:55:53 +02:00
Roland Haroutiounian
1b7b5262dc PEP8 sur EmField 2015-07-01 09:53:35 +02:00
Roland Haroutiounian
bbaa20c8ba Modification d'un nom de fonction (passage en lowercase) 2015-07-01 09:49:48 +02:00
Roland Haroutiounian
6db8376afb Nettoyage du code de EmField 2015-07-01 09:44:12 +02:00
Yann
16a962fb3f Implemented DropColumn for sqlite 2015-06-26 16:03:38 +02:00
Yann
a042306c14 Delete implementation for EmClass and EmField
The EmField version cannot be tested yet (drop column not yet implemented for sqlite in Database.sqlalter)
2015-06-26 11:50:11 +02:00
Roland Haroutiounian
edcfd5b8cd Modification de la recherche du nom de classe dans fields 2015-06-26 10:16:13 +02:00
Roland Haroutiounian
d9c3f8e86c [#11] Modification de la méthode create => passage en arguments positionnels 2015-06-24 11:23:52 +02:00
Roland Haroutiounian
0418bd4895 [#12] Modification et débuggage sur le process de création de fields 2015-06-19 17:09:18 +02:00
Roland Haroutiounian
4e8074cfbb [#12] Modification de EmField pour supprimer le populate et le save et debugger le process de création de champ 2015-06-19 17:09:18 +02:00
Roland Haroutiounian
e9d49533f2 [#12] Correctifs sur le populate et le save de EmField 2015-06-19 17:09:18 +02:00
Roland Haroutiounian
b69b21b431 [#12] debug 2015-06-19 17:09:18 +02:00
Roland Haroutiounian
8e7a7ffe34 [#12] Modification de la classe EmField
Suppression du init et passage des classes plutôt que les instances pour les fieldtypes dans le _fields
2015-06-19 13:35:50 +02:00
Roland Haroutiounian
2a9335f202 [#12] Déplacement des méthodes select_field et unselect_field de fields vers types 2015-06-19 13:35:49 +02:00
Roland Haroutiounian
f13b6f844d [#12] Ajout de la class Em_Field_Type et du select_field 2015-06-19 13:35:49 +02:00
Roland Haroutiounian
c017ae793e [#11] Implémentation du _fields dans EmField 2015-06-19 10:31:58 +02:00