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:
parent
77fc59fd40
commit
2a9335f202
3 changed files with 22 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue