#NEWLINE# def get_interface_type( session , enumeration = INTERFACE_TYPE_ID ) : #NEWLINE# #INDENT# global INTERFACE_TYPE #NEWLINE# if ( q is None ) : #NEWLINE# #INDENT# q = session . query ( models . InterfaceType ) . filter ( ( models . InterfaceType . enumeration == enumeration ) ) #NEWLINE# INTERFACE_TYPE = q . one ( ) #NEWLINE# #UNINDENT# return INTERFACE_TYPE