Yann Weber
80e82073fc
Bugfixes on EmComponent
- Now except for the modify_rank tests test_component didn't fails
- Added simple integer operation capabilities to EmFieldType_integer ( int cast, +=, -=, *=, /=, +, -, *, /, %, ...)
10 年之前
ArnAud
b587f38e32
EM, test: test creation of EmClass
10 年之前
Yann Weber
690b68d714
Small bugfix in components.py
10 年之前
Yann Weber
c74f65ac55
Normalize comments for MlString
10 年之前
Yann Weber
e8a2362d21
Normalize comments for EmFieldGroups
10 年之前
Yann Weber
ff72825720
Normalize comments for components.py
10 年之前
Yann Weber
94e8474185
Bugfixes is some tests
10 年之前
Yann Weber
25e5858ba2
Syntax error fixes
10 年之前
Yann Weber
69f948affd
Added test for create, init and fields
Maybe very bugy
10 年之前
Yann Weber
c4ed3ee8de
First commit for EmFieldGroup tests
Written some test setup and the begining of the __init__ test
10 年之前
Yann Weber
e79e583dfd
Bugfix in EmFieldGroup
- Added a _fields property (also added it as class property, but the way its done is not satisfactory... we want an ordered dict and not a tuple list as class property)
- Its now allowed to give an uid or a name as em_class for EmFieldGroup.create(name, em_class).
- Now when EmFieldGroup.create is called with an existing name it raises an error (ValueError)
- Removed EmFieldGroup.populate and EmFieldGroup.save
10 年之前
Yann Weber
712a2710a0
Added __eq__ to MlString
Now an MlString instance is able to say if another MlString instance is equivalent using mlstr1 == mlstr2
10 年之前
Yann Weber
a9757a4672
Disabling annoying warnings in sqlwrapper and fixing a bug in test_components
Using sqlite db in test_components
10 年之前
ArnAud
ac6a2883f2
EmComponents: close db connexion after fetching (sqlite issue)
10 年之前
Yann Weber
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
10 年之前
Yann Weber
a27f735b48
Writed tests from EmComponent.create()
10 年之前
Driky
615bfc5a81
EM Component.py Commentaire
Correction du bloc de mcommentaire de class encore sous l'ancien modèle.
10 年之前
Driky
a611b08e37
EM Component.py modify_rank
remplacement des self.id restant par self.uid
10 年之前
Yann Weber
e3b4e6ee74
Modified EmComponent's tests to fit with the new EmComponent class
Changed id in uid and changed the dummy class for testing
10 年之前
Yann Weber
7e8414c162
Close ticket #29 and bugfix
Now EmComponent is populate if it's instanciated with a name or an id
10 年之前
ArnAud
460e6449fb
Merge test and "data fields in a dict"
10 年之前
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 年之前
ArnAud
76da309f4c
EM: put data fields in a dict, simplify save() and populate()
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 年之前