GRAYBYTE WORDPRESS FILE MANAGER9000

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python37/lib/python3.7/site-packages/raven/utils/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python37/lib/python3.7/site-packages/raven/utils//conf.py
from __future__ import absolute_import

import copy
import os

from raven.utils.compat import string_types
from raven.utils.imports import import_string


def convert_options(settings, defaults=None):
    """
    Convert a settings object (or dictionary) to parameters which may be passed
    to a new ``Client()`` instance.
    """
    if defaults is None:
        defaults = {}

    if isinstance(settings, dict):
        def getopt(key, default=None):
            return settings.get(
                'SENTRY_%s' % key.upper(),
                defaults.get(key, default)
            )

        options = copy.copy(
            settings.get('SENTRY_CONFIG')
            or settings.get('RAVEN_CONFIG')
            or {}
        )
    else:
        def getopt(key, default=None):
            return getattr(settings, 'SENTRY_%s' % key.upper(), defaults.get(key, default))

        options = copy.copy(
            getattr(settings, 'SENTRY_CONFIG', None)
            or getattr(settings, 'RAVEN_CONFIG', None)
            or {}
        )

    options.setdefault('include_paths', getopt('include_paths', []))
    options.setdefault('exclude_paths', getopt('exclude_paths', []))
    options.setdefault('timeout', getopt('timeout'))
    options.setdefault('name', getopt('name'))
    options.setdefault('auto_log_stacks', getopt('auto_log_stacks'))
    options.setdefault('string_max_length', getopt('string_max_length'))
    options.setdefault('list_max_length', getopt('list_max_length'))
    options.setdefault('site', getopt('site'))
    options.setdefault('processors', getopt('processors'))
    options.setdefault('dsn', getopt('dsn', os.environ.get('SENTRY_DSN')))
    options.setdefault('context', getopt('context'))
    options.setdefault('tags', getopt('tags'))
    options.setdefault('release', getopt('release'))
    options.setdefault('repos', getopt('repos'))
    options.setdefault('environment', getopt('environment'))
    options.setdefault('ignore_exceptions', getopt('ignore_exceptions'))
    options.setdefault('sample_rate', getopt('sample_rate'))

    transport = getopt('transport') or options.get('transport')
    if isinstance(transport, string_types):
        transport = import_string(transport)
    options['transport'] = transport

    return options

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 23:10:23
root / linksafe
0755
__pycache__
--
March 03 2024 23:10:23
root / linksafe
0755
serializer
--
March 03 2024 23:10:23
root / linksafe
0755
__init__.py
4.709 KB
October 29 2017 17:41:19
root / linksafe
0644
compat.py
5.543 KB
October 29 2017 17:41:19
root / linksafe
0644
conf.py
2.225 KB
October 29 2017 17:41:19
root / linksafe
0644
encoding.py
3.226 KB
October 29 2017 17:41:19
root / linksafe
0644
http.py
1.953 KB
October 29 2017 17:41:19
root / linksafe
0644
imports.py
0.395 KB
October 29 2017 17:41:19
root / linksafe
0644
json.py
2.544 KB
October 29 2017 17:41:19
root / linksafe
0644
ssl_match_hostname.py
3.514 KB
October 29 2017 17:41:19
root / linksafe
0644
stacks.py
9.806 KB
October 29 2017 17:41:19
root / linksafe
0644
testutils.py
0.681 KB
October 29 2017 17:41:19
root / linksafe
0644
transaction.py
1.063 KB
October 29 2017 17:41:19
root / linksafe
0644
urlparse.py
0.465 KB
October 29 2017 17:41:19
root / linksafe
0644
wsgi.py
3.644 KB
October 29 2017 17:41:19
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF