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.
9 anos atrás
Roland Haroutiounian
3674f2044c
Merge branch 't11'
Conflicts:
EditorialModel/fieldtypes.py
9 anos atrás
Roland Haroutiounian
3ff8991f1c
[#11 ] Ajout de l'import de la classe VARCHAR de sqlalchemy
9 anos atrás
Roland Haroutiounian
d9572164fa
[#11 ] Ajout d'une méthode dans les fieldtypes pour retourner les arguments sqlalchemy
9 anos atrás
Roland Haroutiounian
46a60bdb89
[#11 ] Ajout d'une méthode dans les fieldtypes pour retourner les arguments sqlalchemy
9 anos atrás
ArnAud
aa4c3e87a2
EmComponent: initialiser la requête
9 anos atrás
ArnAud
a79e9b2991
EmComponent: tester le type de self, pas l'instance
9 anos atrás
ArnAud
b5209a9c64
Merge branch 'master' of git.labocleo.org:lodel2
9 anos atrás
ArnAud
44cd259a80
EmType: Empty foreign key should be None
9 anos atrás
Yann Weber
7fb90e3045
Set some FK of EmField to NULL by default
9 anos atrás
Yann Weber
c94719ed75
Merge branch 'master' of git.labocleo.org:lodel2
Conflicts:
EditorialModel/classes.py
9 anos atrás
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
9 anos atrás
ArnAud
2f8ca27161
EmClass: create should return a populated object
9 anos atrás
Yann Weber
c4e1afd192
More SQL isolation and some little bugfixes
9 anos atrás
ArnAud
e652216a0c
Merge branch 'master' of git.labocleo.org:lodel2
9 anos atrás
ArnAud
d217eb89cc
first shoot for fieldtypes
9 anos atrás
Yann Weber
9d5f1ac260
SQL isolation in fieldgroups and fields
9 anos atrás
Yann Weber
5361ddc94a
Merge branch 'master' of git.labocleo.org:lodel2
9 anos atrás
Yann Weber
493149cfeb
Added sqlutils functions
9 anos atrás
ArnAud
0f66161eaa
fieldtype becomes a named variable instead of an integer
9 anos atrás
ArnAud
fa9b842a3d
all uids ar integers
9 anos atrás
Yann Weber
b1ffef53b9
Merge branch 'sqlupdates' with SQL isolation and sqlsetup fixes
9 anos atrás
Yann Weber
46a4686944
SQL isolation in classes and components
SQL calls are in _populateDb , _saveDb and _createDb methods (exception for component::delete() )
9 anos atrás
Yann Weber
c901e7a643
Bugfixes in sqlsetup
Put every uid columns and associated FK in INTEGER instead of VARCHAR(50)
9 anos atrás
Yann Weber
fff0225428
Merge branch 'sqlwrapper'
9 anos atrás
Yann Weber
8fc072f6ee
Cleaning and changin some methods name in sqlwrapper
9 anos atrás
ArnAud
58303db9fa
EmField: create, save and load
9 anos atrás
Yann Weber
2af27292c7
Merge branch 'sqlwrapper' of git.labocleo.org:lodel2 into sqlwrapper
9 anos atrás
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.
9 anos atrás
ArnAud
22b9dfc4b6
EmFieldGroup: create, save and load. fieldgroups() method for EmClass.
9 anos atrás
ArnAud
9479e4483b
EmClass: implement types() method
9 anos atrás
ArnAud
d0a43614a1
EmType: create, save and load
9 anos atrás
ArnAud
462b6f3bbb
EM component: uid not id + make sure it is an integer
9 anos atrás
ArnAud
a17d889d3f
EmClass : create, save and load
9 anos atrás
ArnAud
fbb6a39261
mlstring: delete an translation
9 anos atrás
ArnAud
50fb6fa1fd
mlstring: empty mlstring should be an empty string
9 anos atrás
Driky
49994da98f
Prise en charge de la clause bindparam dans sqlquerybuilder.py
To-Do: tester
9 anos atrás
ArnAud
c779ede921
MlString: Class to handle multilingual strings
9 anos atrás
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
9 anos atrás
Driky
d66ccfc431
sqlobject.py renommer en sqlquerybuilder.py
Implementation d'alias au ordre sqlalchemy: select, select_from, where, update, execute
To-Do: implemente insert et delete, tester.
9 anos atrás
ArnAud
58a4d7c681
Schéma: uid as integer, no column named 'class'
9 anos atrás
Yann Weber
b82ccd7911
Allow to use SqlWrapper.createTable without being called by SqlWrapper.createAllFromConf
9 anos atrás
Yann Weber
ddfbb2b056
Modified SqlWrapper to handle SqlSetup script
Now SQLSetup in able (via initDb) to initialize the database.
WARNING : initDb start by droping all tables in database before creating the new ones
9 anos atrás
Yann Weber
dde02cadd0
New version of sqlwrapper that is not a singleton anymore
9 anos atrás
Yann Weber
1a6a367481
Removed lines cut after 72 chars
9 anos atrás
Yann Weber
9896c16e8e
Small bugfixes in sqlobject and sqlwrapper
9 anos atrás
ArnAud
a86ff9ee97
ME : renommage et import
9 anos atrás
Yann Weber
59f75eddbd
Merge branch 'sqlwrapper_obj' for bugfixes
9 anos atrás
Yann Weber
4120a45fff
Bugfixes in sqlwrapper
9 anos atrás
Yann Weber
7de456c41c
Merge branch 'master' of git.labocleo.org:lodel2
9 anos atrás