1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-03-19 01:32:01 +01:00
Commit graph

425 commits

Author SHA1 Message Date
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
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
Roland Haroutiounian
9f993c4b42 Résolution d'un conflit 2015-07-01 09:38:27 +02:00
Yann
503ecd570b Some tests dont pass, but most of them does 2015-06-26 17:41:57 +02:00
Yann
16a962fb3f Implemented DropColumn for sqlite 2015-06-26 16:03:38 +02:00
ArnAud
08423e0135 Merge branch 'master' of git.labocleo.org:lodel2 2015-06-26 12:21:41 +02:00
ArnAud
57ca3bb5f8 Merge branch 'master' of git.labocleo.org:lodel2
Conflicts:
	EditorialModel/components.py
2015-06-26 12:21:24 +02:00
ArnAud
b7eb53c98a ME test: changement de nom de fonction : new_uid 2015-06-26 12:20:07 +02:00
Roland Haroutiounian
f503dab46a Implémentation d'un test sur le delete de type 2015-06-26 12:19:14 +02:00
ArnAud
c95b37df12 EmComponent: pep8 et pylint 2015-06-26 12:18:14 +02:00
Yann
0ab7f5aafb EmType delete() method partial implementation
Actually not able to check relation_to_type deletion constraints
2015-06-26 12:03:18 +02:00
Roland Haroutiounian
e6783b4580 [#15] Implémentation de la méthode linked_types pour EmClass 2015-06-26 11:54:38 +02:00
Yann
a042306c14 Delete implementation for EmClass and EmField
The EmField version cannot be tested yet (drop column not yet implemented for sqlite in Database.sqlalter)
2015-06-26 11:50:11 +02:00
Yann
6359adc0f4 Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
2015-06-26 11:41:42 +02:00
Roland Haroutiounian
1d66177f8a Suppression du rel_to_type dans le test EmField create 2015-06-26 10:38:38 +02:00
Roland Haroutiounian
edcfd5b8cd Modification de la recherche du nom de classe dans fields 2015-06-26 10:16:13 +02:00
Roland Haroutiounian
61893313af Tests EmType 2015-06-26 10:05:01 +02:00
Roland Haroutiounian
3f250baea8 Ecriture de la méthode LinkedTypes dans EmType 2015-06-26 10:05:01 +02:00
ArnAud
96bfee8baa test, fieldgroups: no use of subtest 2015-06-25 17:14:19 +02:00
ArnAud
e72a162605 EmFieldgroups: use canonical name to refer to a class
+ pep8 and pylint
2015-06-25 17:12:07 +02:00
Roland Haroutiounian
31e5448694 Ajout des tests sur la classe EmType 2015-06-25 16:09:50 +02:00
Roland Haroutiounian
929fd8516b Modification de la class fields_types 2015-06-25 16:09:11 +02:00
ArnAud
fcbf952d6d EmClass: pylint and pep8
ignoring:
 - line too long
 - doctring
2015-06-24 13:47:15 +02:00