Yann Weber
0ab7f5aafb
EmType delete() method partial implementation
Actually not able to check relation_to_type deletion constraints
9 years ago
Roland Haroutiounian
e6783b4580
[#15 ] Implémentation de la méthode linked_types pour EmClass
9 years ago
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 years ago
Yann Weber
6359adc0f4
Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
9 years ago
Roland Haroutiounian
1d66177f8a
Suppression du rel_to_type dans le test EmField create
9 years ago
Roland Haroutiounian
edcfd5b8cd
Modification de la recherche du nom de classe dans fields
9 years ago
Roland Haroutiounian
61893313af
Tests EmType
9 years ago
Roland Haroutiounian
3f250baea8
Ecriture de la méthode LinkedTypes dans EmType
9 years ago
ArnAud
96bfee8baa
test, fieldgroups: no use of subtest
9 years ago
ArnAud
e72a162605
EmFieldgroups: use canonical name to refer to a class
+ pep8 and pylint
9 years ago
Roland Haroutiounian
31e5448694
Ajout des tests sur la classe EmType
9 years ago
Roland Haroutiounian
929fd8516b
Modification de la class fields_types
9 years ago
ArnAud
fcbf952d6d
EmClass: pylint and pep8
ignoring:
- line too long
- doctring
9 years ago
ArnAud
8844aba318
EmClass: creation on linked types table
9 years ago
Roland Haroutiounian
e12fa5f35b
Merge branch 't12'
9 years ago
Roland Haroutiounian
1ab80e9b1c
[#11 ] Suppression de tests inutiles dans test_field
9 years ago
Yann Weber
027fcb974c
Implemented EmType hierarchy, added utility function to classtype, changed pk for em_type_hierarchy table
EmType hierarchy is handled by 3 functions :
- EmType.superiors()
- EmType.subordinates()
- EmType.add_superior(em_type, nature)
- EmType.del_superior(em_type, nature)
Hierarchy implementation is not tested (because their is no tests...)
Added a function to get authorized relation nature from an EmClassType
Added the nature of a relation to the primary key of em_type_hierarchy table (triple pk : sup_id, sub_id, nature)
9 years ago
ArnAud
caef4dd72f
EM test EmClass: test link_type() and linked_types()
9 years ago
Roland Haroutiounian
7b3c906c51
Merge branch 't11'
9 years ago
Roland Haroutiounian
d9c3f8e86c
[#11 ] Modification de la méthode create => passage en arguments positionnels
9 years ago
Yann Weber
ba40f63a65
Changed the EmType.superiors method to EmType.subordinates
subordinates implementation is note tested
9 years ago
Roland Haroutiounian
62d2a978fb
[#11 ] Finalisation des tests sur Field (debuggage du process de test)
9 years ago
ArnAud
327ae6a1e9
EmClassType : rewrite of the dict representation, better documentation
9 years ago
Roland Haroutiounian
0418bd4895
[#12 ] Modification et débuggage sur le process de création de fields
9 years ago
Roland Haroutiounian
4e8074cfbb
[#12 ] Modification de EmField pour supprimer le populate et le save et debugger le process de création de champ
9 years ago
Roland Haroutiounian
39c9e741cc
[#12 ] Correction sur la casse des fonctions de génération d'une requête Select dans fields_types.py
9 years ago
Roland Haroutiounian
9181acb0b2
[#12 ] Modification sur le nom de la base de test (avant passage à la classe test utils)
9 years ago
Roland Haroutiounian
0c05c66fa6
[#12 ] Correction sur un cast de variable
9 years ago
Roland Haroutiounian
e9d49533f2
[#12 ] Correctifs sur le populate et le save de EmField
9 years ago
Roland Haroutiounian
0751eb26e8
[#12 ] Modification du setup de test pour test_field
9 years ago
Roland Haroutiounian
b69b21b431
[#12 ] debug
9 years ago
Roland Haroutiounian
1f62ec01e4
[#12 ] Ajout des fonctions de création et de suppression d'entrées dans em_field_type
9 years ago
Yann Weber
ea383eb6b7
Now EmFieldGroup.fields(), EmType.fields() and EmType.field_groups() return instance and not uid
9 years ago
Yann Weber
5e04b34a92
Implemented EmFieldGroup.fields()
Not tested because of bugs in EmField
9 years ago
Yann Weber
5dbe064b95
EmType.fields() implementation
Changed comments about EmFieldGroup.fields()
9 years ago
Yann Weber
c46d94dc1c
EmType.field_groups function implementation
9 years ago
Yann Weber
b45e7ea4ee
Added an getTable function to sqlutils
It takes an EmComponent child class as parameter and return an sqlalchemy Table
9 years ago
Yann Weber
b951a0328f
Normalized EmType comments
9 years ago
Driky
91ea809d5b
Correction de Component.modify_rank()
Passe tous les tests
9 years ago
Driky
39c63f8ee3
Correction des cas sign = + ou - sur modify rank et creation de get_max_rank()
9 years ago
ArnAud
22dad9b673
EmType: __init__(), save() and populate() new gen
9 years ago
Yann Weber
302382d488
Created EditorialModel tests database utilities
9 years ago
ArnAud
958c9a9191
EmClasses: implementation of EmClass.fields()
9 years ago
ArnAud
c8d8c34710
EM: test classes : test for EmClass.fields()
9 years ago
Roland Haroutiounian
9140b1b5b1
Merge branch 't12'
9 years ago
Roland Haroutiounian
b0a9a2fa3b
[#12 ] Modification de l'appel au getDbe
Récupération dans EmComponent directement
9 years ago
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 years ago
Roland Haroutiounian
e1d7a88335
[#12 ] Modification de la déclaration des champs de la classe Em_Field_Type
9 years ago
Roland Haroutiounian
2a9335f202
[#12 ] Déplacement des méthodes select_field et unselect_field de fields vers types
9 years ago
Roland Haroutiounian
77fc59fd40
[#12 ] Suppression de deux imports inutiles dans le module fields_types
9 years ago