Esempio n. 1
0
def list_plugins():
    """ list plugins
    """
    ls = plugins_unsorted()
    ls.sort(key=operator.attrgetter("name"))
    for x in ls:
        print "%-20s" % x.name, x.hook
Esempio n. 2
0
def list_plugins():
    ''' list plugins
    '''
    ls = plugins_unsorted()
    ls.sort(key=operator.attrgetter('name'))
    for x in ls:
        print '%-20s' % x.name, x.hook
Esempio n. 3
0
def list_versions():
    ''' list plugin backend versions
    '''

    print 'python \t\t' + platform.python_version()
    print 'abandi \t\t' + abandi.__version__

    all = plugins_unsorted()
    all.sort(key=operator.attrgetter('name'))

    for x in all:
        if hasattr(x, 'version'):
            v = x.version()
            print x.name + '\t\t' + (v if v else 'not installed')
    return all