def get_setter_methods_from_fields(item, fields):
 setters = {}
 for elem in fields:
  name = elem[0].replace('*', '')
  setters[name] = getattr(item, ('set_%s' % name))
 if (item.COLLECTION_TYPE == 'system'):
  setters['modify_interface'] = getattr(item, 'modify_interface')
  setters['delete_interface'] = getattr(item, 'delete_interface')
  setters['rename_interface'] = getattr(item, 'rename_interface')
 return setters

def get_setter_methods_from_fields ( item , fields ) : setters = { } for elem in fields : name = elem [ 0 ] . replace ( '*' , '' ) setters [ name ] = getattr ( item , ( 'set_%s' % name ) ) if ( item . COLLECTION_TYPE == 'system' ) : setters [ 'modify_interface' ] = getattr ( item , 'modify_interface' ) setters [ 'delete_interface' ] = getattr ( item , 'delete_interface' ) setters [ 'rename_interface' ] = getattr ( item , 'rename_interface' ) return setters
return the name of set functions for all fields .