Roland Haroutiounian
79c168587e
[pep8] Correction sur les lignes vides entre les classes et les méthodes
2015-07-10 09:01:00 +02:00
Yann
9cec5af1fa
Merge branch 'component_db_instance_attr'
...
Conflicts:
EditorialModel/classes.py
EditorialModel/types.py
2015-07-09 17:37:43 +02:00
ArnAud
68da99216c
EmType: bad method name
2015-07-09 17:31:10 +02:00
Yann
889abc8547
Put the database configuration asinstance attribute of EmComponent
2015-07-09 17:30:21 +02:00
ArnAud
8289fa70dd
EmTypes: pylint -d C0301,C0111
2015-07-09 17:09:26 +02:00
ArnAud
bd8bc7e814
EmFields: unecessary comment
2015-07-09 16:47:56 +02:00
ArnAud
09e74f3ec1
EmField: unused import + whitespace
2015-07-09 16:37:13 +02:00
ArnAud
b403aef65b
EmFieldgroups: unecessary comment
2015-07-09 16:33:47 +02:00
ArnAud
3a281f4261
EmFieldgroups: unused import
2015-07-09 16:29:57 +02:00
ArnAud
89d9cb62cf
EmClass: delete unused variable
2015-07-09 16:26:15 +02:00
ArnAud
3c13e658a3
EmClass: delete unused import
2015-07-09 16:25:54 +02:00
ArnAud
acce76c48b
EmClass: better documentation of linkedtype
2015-07-09 16:23:04 +02:00
Yann
65166a5dfd
Adding icon argument to EmType::create() method
2015-07-08 09:30:54 +02:00
Yann
cd37b0129f
Better comments for set_rank method
2015-07-08 09:13:03 +02:00
Yann
47ce122e93
Changed icon field to EmField_icon in EmClass and EmField. Added sortcolumn argument for EmType and EmClass.
2015-07-03 12:21:59 +02:00
Yann
e757a3fb90
Doing todo
...
Added a dummy EmFieldType_icon
Added a test for EmType deletion with superiors
2015-07-03 11:52:02 +02:00
Roland Haroutiounian
bf98e2a121
[TODO] Suppression d'un TODO obsolète dans fieldgroups.py
2015-07-03 10:05:55 +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
b03958a65a
Suppression de sqlutils.getEngine au profit de sqlutils.get_engine
2015-07-02 17:03:54 +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
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
Roland Haroutiounian
bbaa20c8ba
Modification d'un nom de fonction (passage en lowercase)
2015-07-01 09:49:48 +02:00
Yann
e87fa84eac
Updating some comments and changing getDbE method name
...
Maintaining an alias for the new EmComponent.db_engine
2015-07-01 09:48:17 +02:00
Roland Haroutiounian
6db8376afb
Nettoyage du code de EmField
2015-07-01 09:44:12 +02:00