Driky
79268ca418
Component.new_rank() correction
same as precedent
il y a 9 ans
Driky
350d15cba9
Component.new_rank() correction
test si new_rank - 1 existe pour signe '='
il y a 9 ans
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.
il y a 9 ans
Driky
2e1fb44d26
Component.new_rank() correction
En plus de modifié la valeur en base, modifie la valeur d'instance.
il y a 9 ans
Driky
0090e2551d
Correction Component.new_rank()
Prise en compte du nom de la collonne indiqué par ranked_in
il y a 9 ans
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.
il y a 9 ans
Driky
253c398223
Modification du .gitignore
Ajout de local.py (sans majuscule)
il y a 9 ans
Driky
c7b6615436
Merge branch 'master' of git.labocleo.org:lodel2
il y a 9 ans
Yann Weber
e74623b1a4
Disabling an annoying warning when using reflect=True in MetaData instanciation
il y a 9 ans
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.
il y a 9 ans
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.
il y a 9 ans
Roland Haroutiounian
3674f2044c
Merge branch 't11'
Conflicts:
EditorialModel/fieldtypes.py
il y a 9 ans
Roland Haroutiounian
3ff8991f1c
[#11 ] Ajout de l'import de la classe VARCHAR de sqlalchemy
il y a 9 ans
Roland Haroutiounian
d9572164fa
[#11 ] Ajout d'une méthode dans les fieldtypes pour retourner les arguments sqlalchemy
il y a 9 ans
Roland Haroutiounian
46a60bdb89
[#11 ] Ajout d'une méthode dans les fieldtypes pour retourner les arguments sqlalchemy
il y a 9 ans
ArnAud
aa4c3e87a2
EmComponent: initialiser la requête
il y a 9 ans
ArnAud
a79e9b2991
EmComponent: tester le type de self, pas l'instance
il y a 9 ans
ArnAud
b5209a9c64
Merge branch 'master' of git.labocleo.org:lodel2
il y a 9 ans
ArnAud
44cd259a80
EmType: Empty foreign key should be None
il y a 9 ans
Yann Weber
7fb90e3045
Set some FK of EmField to NULL by default
il y a 9 ans
Yann Weber
c94719ed75
Merge branch 'master' of git.labocleo.org:lodel2
Conflicts:
EditorialModel/classes.py
il y a 9 ans
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
il y a 9 ans
ArnAud
2f8ca27161
EmClass: create should return a populated object
il y a 9 ans
Yann Weber
c4e1afd192
More SQL isolation and some little bugfixes
il y a 9 ans
ArnAud
e652216a0c
Merge branch 'master' of git.labocleo.org:lodel2
il y a 9 ans
ArnAud
d217eb89cc
first shoot for fieldtypes
il y a 9 ans
Yann Weber
9d5f1ac260
SQL isolation in fieldgroups and fields
il y a 9 ans
Yann Weber
5361ddc94a
Merge branch 'master' of git.labocleo.org:lodel2
il y a 9 ans
Yann Weber
493149cfeb
Added sqlutils functions
il y a 9 ans
ArnAud
0f66161eaa
fieldtype becomes a named variable instead of an integer
il y a 9 ans
ArnAud
fa9b842a3d
all uids ar integers
il y a 9 ans
Yann Weber
b1ffef53b9
Merge branch 'sqlupdates' with SQL isolation and sqlsetup fixes
il y a 9 ans
Driky
14a0d18707
Merge branch 'master' of git.labocleo.org:lodel2
il y a 9 ans
Yann Weber
46a4686944
SQL isolation in classes and components
SQL calls are in _populateDb , _saveDb and _createDb methods (exception for component::delete() )
il y a 9 ans
Yann Weber
c901e7a643
Bugfixes in sqlsetup
Put every uid columns and associated FK in INTEGER instead of VARCHAR(50)
il y a 9 ans
Yann Weber
fff0225428
Merge branch 'sqlwrapper'
il y a 9 ans
Yann Weber
8fc072f6ee
Cleaning and changin some methods name in sqlwrapper
il y a 9 ans
ArnAud
58303db9fa
EmField: create, save and load
il y a 9 ans
Yann Weber
2af27292c7
Merge branch 'sqlwrapper' of git.labocleo.org:lodel2 into sqlwrapper
il y a 9 ans
Yann Weber
6ab79eb412
Implemented alter table in sqlwrapper
Adding a column is implemented for mysql, postgresql and sqlite.
Droping and altering a column is only implemented for mysql and postgresql for the moment.
Quick&dirty tests has been done for sqlite and mysql only.
il y a 9 ans
ArnAud
22b9dfc4b6
EmFieldGroup: create, save and load. fieldgroups() method for EmClass.
il y a 9 ans
ArnAud
9479e4483b
EmClass: implement types() method
il y a 9 ans
ArnAud
d0a43614a1
EmType: create, save and load
il y a 9 ans
ArnAud
462b6f3bbb
EM component: uid not id + make sure it is an integer
il y a 9 ans
ArnAud
a17d889d3f
EmClass : create, save and load
il y a 9 ans
ArnAud
fbb6a39261
mlstring: delete an translation
il y a 9 ans
ArnAud
50fb6fa1fd
mlstring: empty mlstring should be an empty string
il y a 9 ans
Driky
49994da98f
Prise en charge de la clause bindparam dans sqlquerybuilder.py
To-Do: tester
il y a 9 ans
ArnAud
c779ede921
MlString: Class to handle multilingual strings
il y a 9 ans
Driky
f937a63b53
Ajout de insert et delete dans sqlquerybuilder.py
To-do: prendre en charge le cas de execute ou une query a des parametre binder et une liste de dictionnaire est envoyé en param
il y a 9 ans