1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-08-12 23:12:22 +02:00

[#12] Déplacement des méthodes select_field et unselect_field de fields vers types

This commit is contained in:
Roland Haroutiounian 2015-06-19 12:21:34 +02:00
commit 2a9335f202
3 changed files with 22 additions and 24 deletions

View file

@ -169,13 +169,3 @@ class EmField(EmComponent):
return super(EmField, self).save(values)
## Select_field (Function)
#
# @param type EmType: Type to link this field to
# @return True if success, False if failure
def select_field(self, type):
if Em_Field_Type.create(self.uid, type.uid):
return True
else:
return False