#NEWLINE# def _ensure_defaults( dsettings , options , project_root , config_filename ) : #NEWLINE# #INDENT# if ( options . template_path == './templates' ) : #NEWLINE# #INDENT# dsettings [ 'template_path' ] = os . path . join ( project_root , 'templates' ) #NEWLINE# #UNINDENT# if ( options . static_path == './static' ) : #NEWLINE# #INDENT# dsettings [ 'static_path' ] = os . path . join ( project_root , 'static' ) #NEWLINE# #UNINDENT# if ( options . flash_policy_file == './flashpolicy.xml' ) : #NEWLINE# #INDENT# dsettings [ 'flash_policy_file' ] = os . path . join ( project_root , 'flashpolicy.xml' ) #NEWLINE# #UNINDENT# dsettings [ 'locale_paths' ] = ( ) #NEWLINE# dsettings [ 'use_i18n' ] = True #NEWLINE# dsettings [ 'use_l10n' ] = True #NEWLINE# dsettings [ 'language_code' ] = 'en-us' #NEWLINE# dsettings [ 'default_charset' ] = 'utf-8' #NEWLINE# dsettings [ 'email_backend' ] = 'airy.core.mail.backends.smtp.EmailBackend' #NEWLINE# dsettings [ 'email_host' ] = 'localhost' #NEWLINE# dsettings [ 'email_host_post' ] = 25 #NEWLINE# dsettings [ 'email_host_user' ] = '' #NEWLINE# dsettings [ 'email_host_password' ] = '' #NEWLINE# dsettings [ 'email_use_tls' ] = False #NEWLINE# dsettings [ 'email_subject_prefix' ] = '[Airy] ' #NEWLINE# dsettings [ 'server_email' ] = 'root@localhost' #NEWLINE# dsettings [ 'project_root' ] = project_root #NEWLINE# dsettings [ 'settings_module' ] = config_filename . replace ( '/' , '.' ) [ : ( - 3 ) ] . strip ( '.' ) #NEWLINE# dsettings [ 'datetime_format' ] = getattr ( options , 'datetime_format' , 'N j, Y, P' ) #NEWLINE# dsettings [ 'time_format' ] = getattr ( config_filename , 'time_format' , 'P' ) #NEWLINE# dsettings [ 'date_input_formats' ] = getattr ( options , 'date_input_formats' , ( '%Y-%m-%d' , '%m/%d/%Y' , '%m/%d/%y' , '%b %d %Y' , '%b %d, %Y' , '%d %b %Y' , '%d %b, %Y' , '%B %d %Y' , '%B %d, %Y' , '%d %B %Y' , '%d %B, %Y' ) ) #NEWLINE# return dsettings