def _store_option(config, option, default, type_=None, allowed=None, section='server'):
 if config.has_option(section, option):
  if (type_ == 'bool'):
   value = config.getboolean(section, option)
  elif (type_ == 'int'):
   value = config.getint(section, option)
  else:
   value = config.get(section, option)
 else:
  value = default
 if (allowed and (value not in allowed)):
  raise ConfigurationError(("Invalued value '%s' for option '%s'" % (value, option)))
 setattr(current_app.slicer, option, value)

def _store_option ( config , option , default , type_ = None , allowed = None , section = 'server' ) : if config . has_option ( section , option ) : if ( type_ == 'bool' ) : value = config . getboolean ( section , option ) elif ( type_ == 'int' ) : value = config . getint ( section , option ) else : value = config . get ( section , option ) else : value = default if ( allowed and ( value not in allowed ) ) : raise ConfigurationError ( ( "Invalued value '%s' for option '%s'" % ( value , option ) ) ) setattr ( current_app . slicer , option , value )
copies the option into the application config dictionary .