(curs, list, log = None)
Installs list of objects into db.
Installs list of objects into db.
Installs list of objects into db .
def db_install(curs, list, log = None):
    """Installs list of objects into db."""
    for obj in list:
        if not obj.exists(curs):
            obj.create(curs, log)
        else:
            if log:
                log.info('%s is installed' % obj.name)
def db_install ( curs , list , log = None ) : for obj in list : if not obj . exists ( curs ) : obj . create ( curs , log ) else : if log : log . info ( '%s is installed' % obj . name )