#NEWLINE# def generateSiteInfo( self ) : #NEWLINE# #INDENT# "Generate site's admin, location and description info" #NEWLINE# dmap = [ ( 'site.admin.name' , 'admin-name' ) , ( 'site.admin.email' , 'admin-email' ) , ( 'site.admin.phone' , 'admin-phone' ) , ( 'site.location.address' , 'org-address' ) , ( 'site.location.organization' , 'org-name' ) , ( 'site.description' , 'description' ) ] #NEWLINE# sinfo = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( ckey , vkey ) in dmap : #NEWLINE# #INDENT# val = ConfigDB . getConfigItemByKey ( ckey ) . getValue ( ) #NEWLINE# if ( val is not None ) : #NEWLINE# #INDENT# sinfo [ vkey ] = ckey #NEWLINE# #UNINDENT# #UNINDENT# return sinfo