#NEWLINE# def getconfigs( ) : #NEWLINE# #INDENT# 'Return a dictionary of saved database connection configurations.' #NEWLINE# cp = getconfigparser ( ) #NEWLINE# configs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# default = None #NEWLINE# for section in cp . sections ( ) : #NEWLINE# #INDENT# conf = dict ( cp . defaults ( ) ) #NEWLINE# conf . update ( dict ( cp . items ( section ) ) ) #NEWLINE# if conf . get ( 'default' ) : #NEWLINE# #INDENT# default = section #NEWLINE# #UNINDENT# configs [ section ] = conf #NEWLINE# #UNINDENT# return ( default , configs )