<s> """<STR_LIT>""" <EOL> from ovs . dal . datalist import DataList <EOL> from ovs . dal . hybrids . backendtype import BackendType <EOL> class BackendTypeList ( object ) : <EOL> """<STR_LIT>""" <EOL> @ staticmethod <EOL> def get_backend_types ( ) : <EOL> """<STR_LIT>""" <EOL> return DataList ( BackendType , { '<STR_LIT:type>' : DataList . where_operator . AND , <EOL> '<STR_LIT>' : [ ] } ) <EOL> @ staticmethod <EOL> def get_backend_type_by_code ( code ) : <EOL> """<STR_LIT>""" <EOL> backendtypes = DataList ( BackendType , { '<STR_LIT:type>' : DataList . where_operator . AND , <EOL> '<STR_LIT>' : [ ( '<STR_LIT:code>' , DataList . operator . EQUALS , code ) ] } ) <EOL> if len ( backendtypes ) == <NUM_LIT:1> : <EOL> return backendtypes [ <NUM_LIT:0> ] <EOL> return None </s>
