Esempio n. 1
0
def printcomponentinfo( category, type ):
    '''print info about the component of given category and type
Examples:
  printcomponentinfo( 'monitors', 'E_monitor' )
  '''
    print componentinfo( category, type )
    return
Esempio n. 2
0
def printcomponentinfo(category, type):
    '''print info about the component of given category and type
Examples:
  printcomponentinfo( 'monitors', 'E_monitor' )
  '''
    print componentinfo(category, type)
    return
Esempio n. 3
0
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
Esempio n. 4
0
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