Roland Haroutiounian
33a7b6c4a4
PEP8/Pylint on types.py
9 years ago
Yann Weber
3b39b11f16
Add methos to classtype and type
9 years ago
ArnAud
af878631a0
Emtype: whitespace and syntax error (lint + pep8)
9 years ago
ArnAud
905b5d5c49
EmType: clean imports
9 years ago
ArnAud
ed48c64ab8
EmType: do not break while adding or deleting an unknown superior
9 years ago
ArnAud
644f76b14d
Emtype: superiors_list should be a dict with list of int
=> a type can have multiple superiors (only instance of LeObject can have one)
9 years ago
ArnAud
5fabf34ddb
EmType: bugfix, maybe we should learn python :p
9 years ago
ArnAud
49b78fe37d
EmType: implement add_superior() & del_superior()
9 years ago
ArnAud
bc75d357e0
EmType: linked_types() is not usefull for now
9 years ago
ArnAud
a89cfa4429
EmType: use superiors_list instead of subordinates_list to save type hierarchy
9 years ago
ArnAud
8919e55bfb
EmType : select_field() and unselect_field() now call the migration handler
9 years ago
Yann Weber
c126922ecd
Cleaning EmType.superiors() comments and variable name
9 years ago
ArnAud
674f72559d
EmType : implement superiors()
9 years ago
ArnAud
34fdd8d8b3
EmType: implement select and unselect _field
9 years ago
Yann Weber
ed9133016f
Fixing component deletion
9 years ago
ArnAud
c28511bc3a
EmType: check the nature of the subordinates
9 years ago
Yann Weber
195cca24a4
Implementing check methods for each EmComponent child (and EmComponent)
No extended checks was done. Only tested if the check passes without syntax error and without failing with no reason
9 years ago
ArnAud
886cee22df
EmType : subordinates_list and fields_list
9 years ago
Yann Weber
405dd318dd
Added type check in EmComponent and childs class type check. Added some cast functions to Backend
9 years ago
Yann Weber
b6ef37752f
Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes
9 years ago
Roland Haroutiounian
083daf67db
[#44 ] EmType : Added a check method and its call in the delete process
9 years ago
ArnAud
ee9104fd57
EmType : implement .fields()
comment selected_fields because it clashes with ._fields[]
=> we have to rethink of ._fields[] and fieldtypes
9 years ago
ArnAud
55afedc863
EmType : .fieldgroups() filter using EmFieldGroups
9 years ago
ArnAud
338bccd785
EmType: implement fieldgroups()
9 years ago
ArnAud
e2ab8d9a25
EmType : implement classtype
9 years ago
ArnAud
cf2ea5f51e
EM Type : implement selected_fields()
9 years ago
ArnAud
e05422dd63
EM Type:get subordinates and fields in __init__
9 years ago
Roland Haroutiounian
89d45ab799
[EmType] pep8 + pylint
9 years ago
Roland Haroutiounian
a1509dcc68
Désactivation du code SQL dans types.py
9 years ago
Roland Haroutiounian
79c168587e
[pep8] Correction sur les lignes vides entre les classes et les méthodes
9 years ago
ArnAud
68da99216c
EmType: bad method name
9 years ago
Yann Weber
889abc8547
Put the database configuration asinstance attribute of EmComponent
9 years ago
ArnAud
8289fa70dd
EmTypes: pylint -d C0301,C0111
9 years ago
Yann Weber
65166a5dfd
Adding icon argument to EmType::create() method
9 years ago
Yann Weber
47ce122e93
Changed icon field to EmField_icon in EmClass and EmField. Added sortcolumn argument for EmType and EmClass.
9 years ago
Yann Weber
e757a3fb90
Doing todo
Added a dummy EmFieldType_icon
Added a test for EmType deletion with superiors
9 years ago
Yann Weber
6af0b45f3f
Code factorization on EmType select and unselect fields. Added comparison capabilities to EmComponent (and childs)
Implemented __hash__ and __eq__ for EmComponent (based on class name and uid) to test equality betwenn two instance. Allows to use "instance in instance_list" syntax
9 years ago
Yann Weber
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
9 years ago
Driky
347a302e85
Correction: ajout de la valeur de ranked_in pour chaque classe 'em_*'
9 years ago
Yann Weber
4fb2f789b5
Replacing EmComponent method getDbE by db_engine
9 years ago
Yann Weber
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)...
9 years ago
Yann Weber
503ecd570b
Some tests dont pass, but most of them does
9 years ago
Yann Weber
0ab7f5aafb
EmType delete() method partial implementation
Actually not able to check relation_to_type deletion constraints
9 years ago
Roland Haroutiounian
3f250baea8
Ecriture de la méthode LinkedTypes dans EmType
9 years ago
Yann Weber
027fcb974c
Implemented EmType hierarchy, added utility function to classtype, changed pk for em_type_hierarchy table
EmType hierarchy is handled by 3 functions :
- EmType.superiors()
- EmType.subordinates()
- EmType.add_superior(em_type, nature)
- EmType.del_superior(em_type, nature)
Hierarchy implementation is not tested (because their is no tests...)
Added a function to get authorized relation nature from an EmClassType
Added the nature of a relation to the primary key of em_type_hierarchy table (triple pk : sup_id, sub_id, nature)
9 years ago
Yann Weber
ba40f63a65
Changed the EmType.superiors method to EmType.subordinates
subordinates implementation is note tested
9 years ago
Roland Haroutiounian
1f62ec01e4
[#12 ] Ajout des fonctions de création et de suppression d'entrées dans em_field_type
9 years ago
Yann Weber
ea383eb6b7
Now EmFieldGroup.fields(), EmType.fields() and EmType.field_groups() return instance and not uid
9 years ago
Yann Weber
5dbe064b95
EmType.fields() implementation
Changed comments about EmFieldGroup.fields()
9 years ago
Yann Weber
c46d94dc1c
EmType.field_groups function implementation
9 years ago