def process_app_global(key, value):
 options = app_globals_from_config_details.get(key)
 key = get_globals_key(key)
 if options:
  if ('name' in options):
   key = options['name']
  value = (value or options.get('default', ''))
  data_type = options.get('type')
  if (data_type == 'bool'):
   value = asbool(value)
  elif (data_type == 'int'):
   value = int(value)
  elif (data_type == 'split'):
   value = value.split()
 return (key, value)

def process_app_global ( key , value ) : options = app_globals_from_config_details . get ( key ) key = get_globals_key ( key ) if options : if ( 'name' in options ) : key = options [ 'name' ] value = ( value or options . get ( 'default' , '' ) ) data_type = options . get ( 'type' ) if ( data_type == 'bool' ) : value = asbool ( value ) elif ( data_type == 'int' ) : value = int ( value ) elif ( data_type == 'split' ) : value = value . split ( ) return ( key , value )
tweak a key .