1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-06-22 09:30:48 +02:00
Commit graph

101 commits

Author SHA1 Message Date
Yann
b0aac9e557 Adding tests for EmComponent 2015-06-12 17:26:12 +02:00
Yann
9ff45c97a0 Some code formating 2015-06-12 17:23:04 +02:00
Yann
9e27610b40 Added modify_rank test, done some refactoring and updated runtest utils script
runtest script has now comments inside showing usefull options to run tests
2015-06-12 16:47:38 +02:00
Driky
7fc1260ffc Mr correction is here 2015-06-12 15:40:10 +02:00
Yann
3875d5b9bb Added more tests
Added tests for newUid, __init__, save and modify_rank
2015-06-12 14:05:20 +02:00
Yann
fdb7674e93 First commit for EmComponent test
Written test environment init
Written test for newUid and __init__
2015-06-12 14:05:20 +02:00
Driky
64fd3317a6 Correction #13542113 2015-06-12 14:05:03 +02:00
Driky
0c5301a235 Super corrector a la rescousse 2015-06-12 13:56:37 +02:00
Driky
8e501346c5 Correction plz! 2015-06-12 13:44:11 +02:00
Driky
3c85c90fe1 Correction once again 2015-06-12 12:31:21 +02:00
Driky
e9c7b5ebf4 Correction :-( 2015-06-12 12:25:29 +02:00
Driky
f4c195f44c Correction again 2015-06-12 12:13:11 +02:00
Driky
48f286cf30 Correction encoooore 2015-06-12 12:11:15 +02:00
Driky
d5baff9249 Encore des correction 2015-06-12 12:09:26 +02:00
Driky
f93e226b66 Component.modify_ran() correction
Pass the value of ranked_in instaed of the column name.
2015-06-12 12:03:05 +02:00
Driky
79268ca418 Component.new_rank() correction
same as precedent
2015-06-12 11:44:54 +02:00
Driky
350d15cba9 Component.new_rank() correction
test si new_rank - 1 existe pour signe '='
2015-06-12 11:41:09 +02:00
Driky
0bdf755be4 Component.new_rank() correction
En cas de signe égale prend désormais en charge une valeur de new_rank superieur ou inferieur a la valeur actuelle.
2015-06-12 11:26:46 +02:00
Driky
2e1fb44d26 Component.new_rank() correction
En plus de modifié la valeur en base, modifie la valeur d'instance.
2015-06-12 11:05:39 +02:00
Driky
0090e2551d Correction Component.new_rank()
Prise en compte du nom de la collonne indiqué par ranked_in
2015-06-12 10:06:55 +02:00
Driky
2fcd8c7448 Implementation de new_rank()
Fonction new_rank dans component. Permet la modification d'un rank tout en gardant la collection de component valide.
2015-06-12 09:50:21 +02:00
Driky
253c398223 Modification du .gitignore
Ajout de local.py (sans majuscule)
2015-06-12 09:49:39 +02:00
Driky
c7b6615436 Merge branch 'master' of git.labocleo.org:lodel2 2015-06-11 14:18:24 +02:00
Yann
e74623b1a4 Disabling an annoying warning when using reflect=True in MetaData instanciation 2015-06-11 13:29:02 +02:00
Yann
f26e87f621 Adding default date for date_create and date_update columns
The dates are set in EmComponent::create() for date_create and in EmComponent::save() for date_update
The values are sets to datetime.datetime.utcnow() so we now that EVERY date in the db are in UTC, no matter django, database or even server configurations.
We will have to take care to convert dates from database to django timezone in dates fieldtypes.
2015-06-11 12:17:29 +02:00
Yann
c100dd43f3 Adding default date for date_create and date_update columns
The dates are set in EmComponent::create() for date_create and in EmComponent::save() for date_update
The values are sets to datetime.datetime.utcnow() so we now that EVERY date in the db are in UTC, no matter django, database or even server configurations.
We will have to take care to convert dates from database to django timezone in dates fieldtypes.
2015-06-11 12:06:53 +02:00
Roland Haroutiounian
3674f2044c Merge branch 't11'
Conflicts:
	EditorialModel/fieldtypes.py
2015-06-10 17:20:11 +02:00
Roland Haroutiounian
3ff8991f1c [#11] Ajout de l'import de la classe VARCHAR de sqlalchemy 2015-06-10 17:18:07 +02:00
Roland Haroutiounian
d9572164fa [#11] Ajout d'une méthode dans les fieldtypes pour retourner les arguments sqlalchemy 2015-06-10 17:18:07 +02:00
Roland Haroutiounian
46a60bdb89 [#11] Ajout d'une méthode dans les fieldtypes pour retourner les arguments sqlalchemy 2015-06-10 17:16:39 +02:00
ArnAud
aa4c3e87a2 EmComponent: initialiser la requête 2015-06-10 16:30:49 +02:00
ArnAud
a79e9b2991 EmComponent: tester le type de self, pas l'instance 2015-06-10 16:30:00 +02:00
ArnAud
b5209a9c64 Merge branch 'master' of git.labocleo.org:lodel2 2015-06-05 17:01:40 +02:00
ArnAud
44cd259a80 EmType: Empty foreign key should be None 2015-06-05 17:01:32 +02:00
Yann
7fb90e3045 Set some FK of EmField to NULL by default 2015-06-05 17:00:33 +02:00
Yann
c94719ed75 Merge branch 'master' of git.labocleo.org:lodel2
Conflicts:
	EditorialModel/classes.py
2015-06-05 16:50:53 +02:00
Yann
f958efbff5 Code factorisation for new UID creation
Added a classmethod EmComponent::newUid() that determines the caller's class and return a newly registrated UID
2015-06-05 16:46:02 +02:00
ArnAud
2f8ca27161 EmClass: create should return a populated object 2015-06-05 16:45:15 +02:00
Yann
c4e1afd192 More SQL isolation and some little bugfixes 2015-06-05 16:19:48 +02:00
ArnAud
e652216a0c Merge branch 'master' of git.labocleo.org:lodel2 2015-06-05 14:58:37 +02:00
ArnAud
d217eb89cc first shoot for fieldtypes 2015-06-05 14:58:34 +02:00
Yann
9d5f1ac260 SQL isolation in fieldgroups and fields 2015-06-05 14:57:50 +02:00
Yann
5361ddc94a Merge branch 'master' of git.labocleo.org:lodel2 2015-06-05 14:45:20 +02:00
Yann
493149cfeb Added sqlutils functions 2015-06-05 14:45:00 +02:00
ArnAud
0f66161eaa fieldtype becomes a named variable instead of an integer 2015-06-05 14:42:01 +02:00
ArnAud
fa9b842a3d all uids ar integers 2015-06-05 14:38:38 +02:00
Yann
b1ffef53b9 Merge branch 'sqlupdates' with SQL isolation and sqlsetup fixes 2015-06-05 14:35:56 +02:00
Driky
14a0d18707 Merge branch 'master' of git.labocleo.org:lodel2 2015-06-05 14:34:33 +02:00
Yann
46a4686944 SQL isolation in classes and components
SQL calls are in _populateDb , _saveDb and _createDb methods (exception for component::delete() )
2015-06-05 14:32:51 +02:00
Yann
c901e7a643 Bugfixes in sqlsetup
Put every uid columns and associated FK in INTEGER instead of VARCHAR(50)
2015-06-05 14:23:22 +02:00