def printcomponentinfo( category, type ): '''print info about the component of given category and type Examples: printcomponentinfo( 'monitors', 'E_monitor' ) ''' print componentinfo( category, type ) return
def printcomponentinfo(category, type): '''print info about the component of given category and type Examples: printcomponentinfo( 'monitors', 'E_monitor' ) ''' print componentinfo(category, type) return
def componentinfo( category, type ): '''obtain component info of given category and type Examples: componentinfo( 'monitors', 'E_monitor' ) ''' import components if components.registered( category, type ): from components import componentinfo info = componentinfo( category, type ) else: from utils.parsers import parseComponent path = defaultcomponentpath( category, type ) info = parseComponent( path ) return info
def componentinfo(category, type): '''obtain component info of given category and type Examples: componentinfo( 'monitors', 'E_monitor' ) ''' import components if components.registered(category, type): from components import componentinfo info = componentinfo(category, type) else: from utils.parsers import parseComponent path = defaultcomponentpath(category, type) info = parseComponent(path) return info