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 години
Roland Haroutiounian
0418bd4895
[#12 ] Modification et débuggage sur le process de création de fields
преди 9 години
Roland Haroutiounian
4e8074cfbb
[#12 ] Modification de EmField pour supprimer le populate et le save et debugger le process de création de champ
преди 9 години
Roland Haroutiounian
e9d49533f2
[#12 ] Correctifs sur le populate et le save de EmField
преди 9 години
Roland Haroutiounian
b69b21b431
[#12 ] debug
преди 9 години
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
преди 9 години
Roland Haroutiounian
2a9335f202
[#12 ] Déplacement des méthodes select_field et unselect_field de fields vers types
преди 9 години
Roland Haroutiounian
f13b6f844d
[#12 ] Ajout de la class Em_Field_Type et du select_field
преди 9 години
Roland Haroutiounian
c017ae793e
[#11 ] Implémentation du _fields dans EmField
преди 9 години
Roland Haroutiounian
99ca81cdc3
[#11 ] Correction sur le champ identifiant des fieldgroup dans la définition d'un field
преди 9 години
Roland Haroutiounian
4b32798c49
[#11 ] Nettoyage de code
преди 9 години
Roland Haroutiounian
ef00ce2250
[#11 ] Correction pour l'argument du From
преди 9 години
Roland Haroutiounian
6442a85014
[#11 ] Modification du passage d'arguments sur la méthode create de components
преди 9 години
Roland Haroutiounian
21f79a9301
[#11 ] Ajout de la génération de la colonne du Field dans la table correspondante
преди 9 години
Yann Weber
c100dd43f3
Adding default date for date_create and date_update columns
The dates are set in EmComponent::create() for date_create and in EmComponent::save() for date_update
The values are sets to datetime.datetime.utcnow() so we now that EVERY date in the db are in UTC, no matter django, database or even server configurations.
We will have to take care to convert dates from database to django timezone in dates fieldtypes.
преди 9 години
ArnAud
44cd259a80
EmType: Empty foreign key should be None
преди 9 години
Yann Weber
f958efbff5
Code factorisation for new UID creation
Added a classmethod EmComponent::newUid() that determines the caller's class and return a newly registrated UID
преди 9 години
Yann Weber
c4e1afd192
More SQL isolation and some little bugfixes
преди 9 години
ArnAud
d217eb89cc
first shoot for fieldtypes
преди 9 години
Yann Weber
9d5f1ac260
SQL isolation in fieldgroups and fields
преди 9 години
ArnAud
58303db9fa
EmField: create, save and load
преди 9 години
ArnAud
a86ff9ee97
ME : renommage et import
преди 9 години
ArnAud
61e472e16e
ME: no sub-directory
преди 9 години
Yann Weber
8f2a3655bb
Renaming and moving files + fixed a bug in Lodel.settings imports
Lodel/sttings/__init__.py wasn't able to import files when called by manage.py
Renaming em to EditorialModel and moved Em* objects to EditorialModel/lib
Adding a first test (that do not pass because of syntax errors in Em* classes)
преди 9 години
ArnAud
9dab9ce22f
EM: on avance…
преди 9 години
Yann Weber
df4c5cbfd8
Ajout du Doxyfile et des entêtes de méthodes pour les objets EmField, EmFieldGroup et EmType
преди 9 години