#
#  Plex Extension Framework
#  Copyright (C) 2008-2012 Plex, Inc. (James Clarke, Elan Feingold). All Rights Reserved.
#


"""
  Defaults
"""

default_locale                  = 'en-us'
default_network_timeout         = 20.0
module_whitelist                = ['re', 'string', 'datetime', 'time']



"""
  Framework config
"""

default_interface               = 'socket'
log_level                       = 'Debug'
console_logging                 = False
enable_system_debugging         = False

root_path                       = None
plugin_support_dir_name         = None
bundles_dir_name                = None

# These variables are only used when app_support_path is defined
pid_files_dir                   = 'pid'
log_files_dir                   = 'log'
plugin_support_files_dir        = 'support'
bundle_files_dir                = 'bundle'

# These variables override the app support path + individual dir variables if set
pid_file                        = None
log_file                        = None

log_internal_component_usage    = False
show_internal_traceback_frames  = True
enable_external_debugging       = True

messaging_keepalive_interval    = 20
messaging_timeout               = 60

taskpool_maximum_threads        = 8
taskpool_priority_threads       = 2

threadkit_parallel_limit        = 4
agentservice_update_limit       = 3

socket_interface_port           = 0

http_cache_max_items            = 1024
http_cache_max_items_grace      = 100
http_cache_max_size             = 52428800

flags                           = []

ab_api_key = None

cf_domain = None
cf_token = None
cf_rooms = {
  'inc'   : '211292',
  'dev'   : '213005',
  'err'   : '521743',
  'test'  : '442698',
}


"""
  Platform config
"""

system_bundle_name              = 'System'
system_bundle_identifier        = 'com.plexapp.system'
services_bundle_name            = 'Services'
services_bundle_identifier      = 'com.plexapp.system.services'
services_bundle_path            = None
framework_bundle_name           = 'Framework'
framework_bundle_identifier     = 'com.plexapp.framework'
use_node_for_url_lookups        = False

server_version                  = None
daemonized                      = None

os_map = {
  "Darwin"                      : "MacOSX",
  "Linux"                       : "Linux",
  "Windows"                     : "Windows",
  "FreeBSD"                     : "FreeBSD",
  "SunOS"                       : "SunOS",
  "MidnightBSD"                 : "FreeBSD"
}

cpu_map = {
  "i386"                        : "i386",
  "i686"                        : "i386",
  "x86_64"                      : "i386",
  "amd64"                       : "i386",
  "3548b0-smp"                  : "MIPS",
  "mips"                        : "MIPS",
  "mips64"                      : "mips64",
  "Win32"                       : "Win32",
  "armv5tel"                    : "armv5tel",
  "armv61"                      : "armv5tel",
  "armv5tejl"                   : "armv5tel",
  "armv6l"                      : "armv5tel",
  "armv7l"                      : "armv5tel",
  "ppc"                         : "ppc",
  "sun4v"                       : "sun4v",
}
