Yann Weber
b0aac9e557
Adding tests for EmComponent
10 年前
Yann Weber
9ff45c97a0
Some code formating
10 年前
Yann Weber
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
10 年前
Driky
7fc1260ffc
Mr correction is here
10 年前
Yann Weber
3875d5b9bb
Added more tests
Added tests for newUid, __init__, save and modify_rank
10 年前
Yann Weber
fdb7674e93
First commit for EmComponent test
Written test environment init
Written test for newUid and __init__
10 年前
Driky
64fd3317a6
Correction #13542113
10 年前
Driky
0c5301a235
Super corrector a la rescousse
10 年前
Driky
8e501346c5
Correction plz!
10 年前
Driky
3c85c90fe1
Correction once again
10 年前
Driky
e9c7b5ebf4
Correction :-(
10 年前
Driky
f4c195f44c
Correction again
10 年前
Driky
48f286cf30
Correction encoooore
10 年前
Driky
d5baff9249
Encore des correction
10 年前
Driky
f93e226b66
Component.modify_ran() correction
Pass the value of ranked_in instaed of the column name.
10 年前
Driky
79268ca418
Component.new_rank() correction
same as precedent
10 年前
Driky
350d15cba9
Component.new_rank() correction
test si new_rank - 1 existe pour signe '='
10 年前
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.
10 年前
Driky
2e1fb44d26
Component.new_rank() correction
En plus de modifié la valeur en base, modifie la valeur d'instance.
10 年前
Driky
0090e2551d
Correction Component.new_rank()
Prise en compte du nom de la collonne indiqué par ranked_in
10 年前
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.
10 年前
Driky
253c398223
Modification du .gitignore
Ajout de local.py (sans majuscule)
10 年前
Driky
c7b6615436
Merge branch 'master' of git.labocleo.org:lodel2
10 年前
Yann Weber
e74623b1a4
Disabling an annoying warning when using reflect=True in MetaData instanciation
10 年前
Yann Weber
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.
10 年前
Yann Weber
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.
10 年前
Roland Haroutiounian
3674f2044c
Merge branch 't11'
Conflicts:
EditorialModel/fieldtypes.py
10 年前
Roland Haroutiounian
3ff8991f1c
[#11 ] Ajout de l'import de la classe VARCHAR de sqlalchemy
10 年前
Roland Haroutiounian
d9572164fa
[#11 ] Ajout d'une méthode dans les fieldtypes pour retourner les arguments sqlalchemy
10 年前
Roland Haroutiounian
46a60bdb89
[#11 ] Ajout d'une méthode dans les fieldtypes pour retourner les arguments sqlalchemy
10 年前
ArnAud
aa4c3e87a2
EmComponent: initialiser la requête
10 年前
ArnAud
a79e9b2991
EmComponent: tester le type de self, pas l'instance
10 年前
ArnAud
b5209a9c64
Merge branch 'master' of git.labocleo.org:lodel2
10 年前
ArnAud
44cd259a80
EmType: Empty foreign key should be None
10 年前
Yann Weber
7fb90e3045
Set some FK of EmField to NULL by default
10 年前
Yann Weber
c94719ed75
Merge branch 'master' of git.labocleo.org:lodel2
Conflicts:
EditorialModel/classes.py
10 年前
Yann Weber
f958efbff5
Code factorisation for new UID creation
Added a classmethod EmComponent::newUid() that determines the caller's class and return a newly registrated UID
10 年前
ArnAud
2f8ca27161
EmClass: create should return a populated object
10 年前
Yann Weber
c4e1afd192
More SQL isolation and some little bugfixes
10 年前
ArnAud
e652216a0c
Merge branch 'master' of git.labocleo.org:lodel2
10 年前
ArnAud
d217eb89cc
first shoot for fieldtypes
10 年前
Yann Weber
9d5f1ac260
SQL isolation in fieldgroups and fields
10 年前
Yann Weber
5361ddc94a
Merge branch 'master' of git.labocleo.org:lodel2
10 年前
Yann Weber
493149cfeb
Added sqlutils functions
10 年前
ArnAud
0f66161eaa
fieldtype becomes a named variable instead of an integer
10 年前
ArnAud
fa9b842a3d
all uids ar integers
10 年前
Yann Weber
b1ffef53b9
Merge branch 'sqlupdates' with SQL isolation and sqlsetup fixes
10 年前
Driky
14a0d18707
Merge branch 'master' of git.labocleo.org:lodel2
10 年前
Yann Weber
46a4686944
SQL isolation in classes and components
SQL calls are in _populateDb , _saveDb and _createDb methods (exception for component::delete() )
10 年前
Yann Weber
c901e7a643
Bugfixes in sqlsetup
Put every uid columns and associated FK in INTEGER instead of VARCHAR(50)
10 年前