ArnAud
bd8bc7e814
EmFields: unecessary comment
9 years ago
ArnAud
09e74f3ec1
EmField: unused import + whitespace
9 years ago
ArnAud
b403aef65b
EmFieldgroups: unecessary comment
9 years ago
ArnAud
3a281f4261
EmFieldgroups: unused import
9 years ago
ArnAud
89d9cb62cf
EmClass: delete unused variable
9 years ago
ArnAud
3c13e658a3
EmClass: delete unused import
9 years ago
ArnAud
acce76c48b
EmClass: better documentation of linkedtype
9 years ago
Yann Weber
65166a5dfd
Adding icon argument to EmType::create() method
9 years ago
Yann Weber
cd37b0129f
Better comments for set_rank method
9 years ago
Yann Weber
47ce122e93
Changed icon field to EmField_icon in EmClass and EmField. Added sortcolumn argument for EmType and EmClass.
9 years ago
Yann Weber
e757a3fb90
Doing todo
Added a dummy EmFieldType_icon
Added a test for EmType deletion with superiors
9 years ago
Roland Haroutiounian
bf98e2a121
[TODO] Suppression d'un TODO obsolète dans fieldgroups.py
9 years ago
Roland Haroutiounian
53c2a72a9d
[TODO] Suppression d'un TODO dans fieldtypes
9 years ago
Roland Haroutiounian
1cfac44b9f
[TODO] Suppression d'un TODO dans fieldtypes
9 years ago
Roland Haroutiounian
76c97bf1f3
[TODO] Suppression du TODO dans classes sur la vérification du class_type dans EmClass
Cette vérification est prise en charge dans EmComponent
9 years ago
Yann Weber
d7d4a989f1
TODO on EmComponent
9 years ago
Roland Haroutiounian
b03958a65a
Suppression de sqlutils.getEngine au profit de sqlutils.get_engine
9 years ago
Yann Weber
49dfe9ad03
Code factorization on EmComponent.modify_rank()
Changed beahvior : when a 'non-change' is asked (like +0 -0 or set ranke to actual rank) don't raise an Error
9 years ago
Yann Weber
f41d164603
Added test for EmComponent.get_max_rank(), replacing the default value for rank by the one processed by get_max_rank
9 years ago
Yann Weber
6af0b45f3f
Code factorization on EmType select and unselect fields. Added comparison capabilities to EmComponent (and childs)
Implemented __hash__ and __eq__ for EmComponent (based on class name and uid) to test equality betwenn two instance. Allows to use "instance in instance_list" syntax
9 years ago
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 years ago
Yann Weber
3f8aff6813
EmField add_column code factorization
9 years ago
Yann Weber
166dc6ad75
Added docstrings comments to tests and fixed "false hidden failure"
Added docstrings comments to tests (for fancy output with -v ).
Fixed strange hidden failure that make tests stops on non failed tests with -f option. Those false failure seems to comes from with self.subTest blocs with functions calls that does assertion.
9 years ago
Driky
347a302e85
Correction: ajout de la valeur de ranked_in pour chaque classe 'em_*'
9 years ago
Yann Weber
a3b9daf319
sqlwrapper deletion and sqlsetup enhancement
Moved the database initialisation functionnality to sqlsetup and fixed all the code to handle the sqlwrapper deletion
9 years ago
Roland Haroutiounian
43bb085667
[EmField] Modification AddColumn + test ranked_in dans Components repassé temporairement à -1
9 years ago
Roland Haroutiounian
e46ca292c8
[EmField] Suppression de l'appel à SqlWrapper
9 years ago
Driky
847509590a
Correction de Component. cl -> cls
9 years ago
Driky
c3560d3feb
Correction sur Component pour passer get_max_rank en classmethod
9 years ago
Driky
3b97054d3b
Petite correction sur le rank initial
9 years ago
Yann Weber
4fb2f789b5
Replacing EmComponent method getDbE by db_engine
9 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)...
9 years ago
Yann Weber
65b10a6c5d
Added some tests to tests_types.py
Added hierarchy tests
9 years ago
Roland Haroutiounian
744a9fdda2
[EditorialModel/classes.py] Passage au db_engine()
9 years ago
Roland Haroutiounian
501ee8f0ea
PEP8
9 years ago
Roland Haroutiounian
d0d9ef6ecd
[EditorialModel/classtypes.py] PEP8
9 years ago
Roland Haroutiounian
e0688d31b2
[EditorialModel/fields_types.py] PEP8
9 years ago
Roland Haroutiounian
519d0c2e61
[fieldtypes.py] Nettoyage et PEP8
9 years ago
Roland Haroutiounian
0b1f520647
Suppression d'une variable non utilisée dans la méthode add_field_to_column_table() de EmField
9 years ago
Roland Haroutiounian
ec69ca5837
Optimisations de code dans EmField
9 years ago
Roland Haroutiounian
153dec2537
EmField : remplacement des appels getDbE() par db_engine()
9 years ago
Roland Haroutiounian
1b7b5262dc
PEP8 sur EmField
9 years ago
Roland Haroutiounian
bbaa20c8ba
Modification d'un nom de fonction (passage en lowercase)
9 years ago
Yann Weber
e87fa84eac
Updating some comments and changing getDbE method name
Maintaining an alias for the new EmComponent.db_engine
9 years ago
Roland Haroutiounian
6db8376afb
Nettoyage du code de EmField
9 years ago
Roland Haroutiounian
9f993c4b42
Résolution d'un conflit
9 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