1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-11-05 02:51:33 +01:00
Commit graph

30 commits

Author SHA1 Message Date
Roland Haroutiounian
76c97bf1f3 [TODO] Suppression du TODO dans classes sur la vérification du class_type dans EmClass
Cette vérification est prise en charge dans EmComponent
2015-07-03 09:51:31 +02:00
Yann
d7d4a989f1 TODO on EmComponent 2015-07-03 09:41:06 +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
Driky
347a302e85 Correction: ajout de la valeur de ranked_in pour chaque classe 'em_*' 2015-07-01 16:29:36 +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
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
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
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
ArnAud
fcbf952d6d EmClass: pylint and pep8
ignoring:
 - line too long
 - doctring
2015-06-24 13:47:15 +02:00
ArnAud
8844aba318 EmClass: creation on linked types table 2015-06-24 12:24:03 +02:00
ArnAud
958c9a9191 EmClasses: implementation of EmClass.fields() 2015-06-19 14:05:43 +02:00
Yann
00614d90e9 New way to specify _fields and table in EmComponent's child classes
Now _fields and table MUST be class attribute.
Its important to note that _fields now consist in a list of (name, ftype) tuples and that ftype is a EmFieldType class and NOT an EmFieldType instance
2015-06-19 12:29:19 +02:00
ArnAud
007a04ca2a EmClass: test of types(), use uid instead of id 2015-06-19 11:33:51 +02:00
ArnAud
98b1dc455f EmClass: import EditorialModel module. use uid instead of id 2015-06-19 11:33:51 +02:00
Yann
97c6b41e88 Close #31
EmComponent.create() now takes keywords arguments corresponding to the _fields property of the calling class

WARNING !!! Hardcoded rank = -1 at component creation and Hardcoded 0 as default value for EmClass icon
2015-06-17 17:07:18 +02:00
ArnAud
76da309f4c EM: put data fields in a dict, simplify save() and populate() 2015-06-12 14:09:16 +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
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
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
ArnAud
22b9dfc4b6 EmFieldGroup: create, save and load. fieldgroups() method for EmClass. 2015-06-04 16:02:50 +02:00
ArnAud
9479e4483b EmClass: implement types() method 2015-06-04 14:10:06 +02:00
ArnAud
a17d889d3f EmClass : create, save and load 2015-06-04 11:41:12 +02:00
ArnAud
a86ff9ee97 ME : renommage et import 2015-05-29 17:09:10 +02:00
Renamed from EditorialModel/class.py (Browse further)