Driky
3b97054d3b
Petite correction sur le rank initial
10 years ago
Yann Weber
4fb2f789b5
Replacing EmComponent method getDbE by db_engine
10 years ago
Yann Weber
a23fd3dbfc
Bugfix on EmClass and EmType so every tests pass
Every tests passes, except the skipped tests on relation_to_type links
There is a strange warning that comes maby from some tests (but maybe not)...
10 years ago
Yann Weber
65b10a6c5d
Added some tests to tests_types.py
Added hierarchy tests
10 years ago
Roland Haroutiounian
744a9fdda2
[EditorialModel/classes.py] Passage au db_engine()
10 years ago
Roland Haroutiounian
501ee8f0ea
PEP8
10 years ago
Roland Haroutiounian
d0d9ef6ecd
[EditorialModel/classtypes.py] PEP8
10 years ago
Roland Haroutiounian
e0688d31b2
[EditorialModel/fields_types.py] PEP8
10 years ago
Roland Haroutiounian
519d0c2e61
[fieldtypes.py] Nettoyage et PEP8
10 years ago
Roland Haroutiounian
0b1f520647
Suppression d'une variable non utilisée dans la méthode add_field_to_column_table() de EmField
10 years ago
Roland Haroutiounian
ec69ca5837
Optimisations de code dans EmField
10 years ago
Roland Haroutiounian
153dec2537
EmField : remplacement des appels getDbE() par db_engine()
10 years ago
Roland Haroutiounian
1b7b5262dc
PEP8 sur EmField
10 years ago
Roland Haroutiounian
bbaa20c8ba
Modification d'un nom de fonction (passage en lowercase)
10 years ago
Yann Weber
e87fa84eac
Updating some comments and changing getDbE method name
Maintaining an alias for the new EmComponent.db_engine
10 years ago
Roland Haroutiounian
6db8376afb
Nettoyage du code de EmField
10 years ago
Roland Haroutiounian
9f993c4b42
Résolution d'un conflit
10 years ago
Yann Weber
503ecd570b
Some tests dont pass, but most of them does
10 years ago
Yann Weber
16a962fb3f
Implemented DropColumn for sqlite
10 years ago
ArnAud
b7eb53c98a
ME test: changement de nom de fonction : new_uid
10 years ago
Roland Haroutiounian
f503dab46a
Implémentation d'un test sur le delete de type
10 years ago
ArnAud
c95b37df12
EmComponent: pep8 et pylint
10 years ago
Yann Weber
0ab7f5aafb
EmType delete() method partial implementation
Actually not able to check relation_to_type deletion constraints
10 years ago
Roland Haroutiounian
e6783b4580
[#15 ] Implémentation de la méthode linked_types pour EmClass
10 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)
10 years ago
Yann Weber
6359adc0f4
Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
10 years ago
Roland Haroutiounian
1d66177f8a
Suppression du rel_to_type dans le test EmField create
10 years ago
Roland Haroutiounian
edcfd5b8cd
Modification de la recherche du nom de classe dans fields
10 years ago
Roland Haroutiounian
61893313af
Tests EmType
10 years ago
Roland Haroutiounian
3f250baea8
Ecriture de la méthode LinkedTypes dans EmType
10 years ago
ArnAud
96bfee8baa
test, fieldgroups: no use of subtest
10 years ago
ArnAud
e72a162605
EmFieldgroups: use canonical name to refer to a class
+ pep8 and pylint
10 years ago
Roland Haroutiounian
31e5448694
Ajout des tests sur la classe EmType
10 years ago
Roland Haroutiounian
929fd8516b
Modification de la class fields_types
10 years ago
ArnAud
fcbf952d6d
EmClass: pylint and pep8
ignoring:
- line too long
- doctring
10 years ago
ArnAud
8844aba318
EmClass: creation on linked types table
10 years ago
Roland Haroutiounian
1ab80e9b1c
[#11 ] Suppression de tests inutiles dans test_field
10 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)
10 years ago
ArnAud
caef4dd72f
EM test EmClass: test link_type() and linked_types()
10 years ago
Roland Haroutiounian
d9c3f8e86c
[#11 ] Modification de la méthode create => passage en arguments positionnels
10 years ago
Yann Weber
ba40f63a65
Changed the EmType.superiors method to EmType.subordinates
subordinates implementation is note tested
10 years ago
Roland Haroutiounian
62d2a978fb
[#11 ] Finalisation des tests sur Field (debuggage du process de test)
10 years ago
ArnAud
327ae6a1e9
EmClassType : rewrite of the dict representation, better documentation
10 years ago
Roland Haroutiounian
0418bd4895
[#12 ] Modification et débuggage sur le process de création de fields
10 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
10 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
10 years ago
Roland Haroutiounian
9181acb0b2
[#12 ] Modification sur le nom de la base de test (avant passage à la classe test utils)
10 years ago
Roland Haroutiounian
e9d49533f2
[#12 ] Correctifs sur le populate et le save de EmField
10 years ago
Roland Haroutiounian
0751eb26e8
[#12 ] Modification du setup de test pour test_field
10 years ago
Roland Haroutiounian
b69b21b431
[#12 ] debug
10 years ago