Roland Haroutiounian
bf98e2a121
[TODO] Suppression d'un TODO obsolète dans fieldgroups.py
2015-07-03 10:05:55 +02:00
Roland Haroutiounian
3bb3bb4638
Merge branch 'nettoyage-TODO'
2015-07-03 09:59:57 +02:00
Roland Haroutiounian
53c2a72a9d
[TODO] Suppression d'un TODO dans fieldtypes
2015-07-03 09:59:33 +02:00
Roland Haroutiounian
1cfac44b9f
[TODO] Suppression d'un TODO dans fieldtypes
2015-07-03 09:55:52 +02:00
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
2015-07-03 09:51:31 +02:00
Yann
d7d4a989f1
TODO on EmComponent
2015-07-03 09:41:06 +02:00
Roland Haroutiounian
0e1932657c
Merge branch 'nettoyage-TODO'
2015-07-03 09:35:51 +02:00
Roland Haroutiounian
1d08100c10
[TODO] Suppression d'un TODO dans sqlsetup
2015-07-03 09:35:21 +02:00
Roland Haroutiounian
2f4497dfb9
[TODO] Suppression des TODO dans sqlsettings
2015-07-03 09:32:04 +02:00
Roland Haroutiounian
682d64753b
Merge branch 'pep8'
2015-07-02 17:04:37 +02:00
Roland Haroutiounian
b03958a65a
Suppression de sqlutils.getEngine au profit de sqlutils.get_engine
2015-07-02 17:03:54 +02:00
Roland Haroutiounian
9aa80d6238
Merge branch 'pep8'
2015-07-02 16:52:40 +02:00
Roland Haroutiounian
9cc3f9ce12
PEP8 sur sqlalter.py
2015-07-02 16:47:51 +02:00
Roland Haroutiounian
4efea40abf
Ajout d'un encoding sur un init
2015-07-02 16:47:51 +02:00
Roland Haroutiounian
3f4ee09c9f
Normalisation PEP8/Pylint sur sqlsetup.py
2015-07-02 16:47:51 +02:00
Roland Haroutiounian
b774d33fae
Nettoyage et mise en conformité PEP 8 de sqlutils.py
2015-07-02 16:47:51 +02:00
Roland Haroutiounian
2bae702a8b
Ajout de l'alias get_engine dans sqlutils.py
2015-07-02 16:47:51 +02:00
Roland Haroutiounian
1796990944
[PEP8] Nettoyage de Database/sqlutils.py
2015-07-02 16:47:51 +02:00
Roland Haroutiounian
c39e4ef7a6
PEP8 sur sqlalter.py
2015-07-02 16:43:51 +02:00
Roland Haroutiounian
9054c5140f
Ajout d'un encoding sur un init
2015-07-02 16:43:51 +02:00
Roland Haroutiounian
1322e14d6b
Normalisation PEP8/Pylint sur sqlsetup.py
2015-07-02 16:43:51 +02:00
Roland Haroutiounian
c3f736ca43
Nettoyage et mise en conformité PEP 8 de sqlutils.py
2015-07-02 16:43:51 +02:00
Roland Haroutiounian
ad3c662a47
Ajout de l'alias get_engine dans sqlutils.py
2015-07-02 16:43:51 +02:00
Roland Haroutiounian
8e91c99fae
[PEP8] Nettoyage de Database/sqlutils.py
2015-07-02 16:43:51 +02:00
Yann
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
2015-07-02 16:43:23 +02:00
Yann
f41d164603
Added test for EmComponent.get_max_rank(), replacing the default value for rank by the one processed by get_max_rank
2015-07-02 15:58:17 +02:00
Yann
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
2015-07-02 14:35:43 +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
Yann
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.
2015-07-02 11:03:04 +02:00
Driky
347a302e85
Correction: ajout de la valeur de ranked_in pour chaque classe 'em_*'
2015-07-01 16:29:36 +02:00
Yann
a3b9daf319
sqlwrapper deletion and sqlsetup enhancement
...
Moved the database initialisation functionnality to sqlsetup and fixed all the code to handle the sqlwrapper deletion
2015-07-01 16:22:10 +02:00
Roland Haroutiounian
43bb085667
[EmField] Modification AddColumn + test ranked_in dans Components repassé temporairement à -1
2015-07-01 16:13:27 +02:00
Roland Haroutiounian
e46ca292c8
[EmField] Suppression de l'appel à SqlWrapper
2015-07-01 15:38:14 +02:00
Driky
847509590a
Correction de Component. cl -> cls
2015-07-01 15:36:14 +02:00
Driky
c3560d3feb
Correction sur Component pour passer get_max_rank en classmethod
2015-07-01 14:58:59 +02:00
Driky
3b97054d3b
Petite correction sur le rank initial
2015-07-01 14:11:57 +02:00
Yann
23c5af58ea
Adding graph generation to Doxyfile
...
Added class graph, caller and call graph
2015-07-01 13:57:09 +02:00
Yann
4fb2f789b5
Replacing EmComponent method getDbE by db_engine
2015-07-01 12:35:18 +02:00
Yann
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)...
2015-07-01 12:25:52 +02:00
Yann
65b10a6c5d
Added some tests to tests_types.py
...
Added hierarchy tests
2015-07-01 12:23:21 +02:00
Roland Haroutiounian
744a9fdda2
[EditorialModel/classes.py] Passage au db_engine()
2015-07-01 11:32:49 +02:00
Roland Haroutiounian
501ee8f0ea
PEP8
2015-07-01 11:31:04 +02:00
Roland Haroutiounian
d0d9ef6ecd
[EditorialModel/classtypes.py] PEP8
2015-07-01 11:23:37 +02:00
Roland Haroutiounian
e0688d31b2
[EditorialModel/fields_types.py] PEP8
2015-07-01 11:16:24 +02:00
Roland Haroutiounian
519d0c2e61
[fieldtypes.py] Nettoyage et PEP8
2015-07-01 10:59:57 +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