def define_servers():
 global CFG
 try:
  for server in CFG['servers']:
   svr = CFG['servers'][server]
   s = ConfigServer(server.replace('{', '[').replace('}', ']'), svr)
   if s.fillserver():
    s.priority.set(1)
    s.fillserver.set(False)
 except KeyError:
  pass

def define_servers ( ) : global CFG try : for server in CFG [ 'servers' ] : svr = CFG [ 'servers' ] [ server ] s = ConfigServer ( server . replace ( '{' , '[' ) . replace ( '}' , ']' ) , svr ) if s . fillserver ( ) : s . priority . set ( 1 ) s . fillserver . set ( False ) except KeyError : pass
define servers listed in the setup file return a list of configserver instances .