def get_settings_var(directory=DIRECTORY):
 settings_var = {}
 settings_var['EXTENSIONS'] = EXTENSIONS
 settings_var['SELECT_FORMATS'] = SELECT_FORMATS
 settings_var['ADMIN_VERSIONS'] = ADMIN_VERSIONS
 settings_var['ADMIN_THUMBNAIL'] = ADMIN_THUMBNAIL
 settings_var['MAX_UPLOAD_SIZE'] = MAX_UPLOAD_SIZE
 settings_var['NORMALIZE_FILENAME'] = NORMALIZE_FILENAME
 settings_var['CONVERT_FILENAME'] = CONVERT_FILENAME
 settings_var['SEARCH_TRAVERSE'] = SEARCH_TRAVERSE
 return settings_var

def get_settings_var ( directory = DIRECTORY ) : settings_var = { } settings_var [ 'EXTENSIONS' ] = EXTENSIONS settings_var [ 'SELECT_FORMATS' ] = SELECT_FORMATS settings_var [ 'ADMIN_VERSIONS' ] = ADMIN_VERSIONS settings_var [ 'ADMIN_THUMBNAIL' ] = ADMIN_THUMBNAIL settings_var [ 'MAX_UPLOAD_SIZE' ] = MAX_UPLOAD_SIZE settings_var [ 'NORMALIZE_FILENAME' ] = NORMALIZE_FILENAME settings_var [ 'CONVERT_FILENAME' ] = CONVERT_FILENAME settings_var [ 'SEARCH_TRAVERSE' ] = SEARCH_TRAVERSE return settings_var
get settings variables used for filebrowser listing .