관리-도구
편집 파일: models.cpython-37.pyc
B ��Y�$ � @ s d Z ddlmZmZ ddlZddlZddlZddlZddlm Z ddl mZmZ ddl mZ ddlmZ ddlmZmZmZ dd lmZ e�d �Zdd� Zd aG dd� de�Ze� Zddd�Zddd�ZG dd� de�Z dd� Z!d dd�Z"e� Z#da$dd� Z%ej&dk �re%� dS )!z� raven.contrib.django.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Acts as an implicit hook for Django installs. :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_import�unicode_literalsN)�settings)�got_request_exception�request_started)�Lock)�convert_options)�PY2�binary_type� text_type)� import_stringzsentry.errors.clientc C s t tj�S )z6 Modules in settings.INSTALLED_APPS as a set. )�setr ZINSTALLED_APPS� r r �L/opt/alt/python37/lib/python3.7/site-packages/raven/contrib/django/models.py�get_installed_apps s r )NNc @ s� e Zd ZdZedd� �Zedd� �Zedd� �Zdd� Zdd� Z dd� Z d d� Zd d� Zdd� Z dd� Zd d� Zdd� Zdd� Zer�dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Z dd� Z!dd� Z"d d� Z#d!d� Z$d"d� Z%d#d� Z&d$d� Z'd%d� Z(d&d� Z)d'd� Z*d(d� Z+d)d� Z,d*d� Z-d+d� Z.e�rrd,d� Z/d-d� Z0d.d� Z1d/d� Z2d0d� Z3d1d� Z4d2d� Z5d3d� Z6d4d� Z7d5d� Z8d6S )7�ProxyClientzE A proxy which represents the currently client at all times. c C s | � � S )N)�__dir__)�xr r r �<lambda>- � zProxyClient.<lambda>c C s t � jS )N)� get_client� __class__)r r r r r 1 r c C s t � jS )N)r �__dict__)�or r r r 3 r c C s t t� �S )N)�reprr )r r r r r 5 r c C s t t� |�S )N)�getattrr )r r r r r r 6 r c C s t t� ||�S )N)�setattrr )r r �vr r r r 7 r c C s t t� |�S )N)�delattrr )r r r r r r 8 r c C s t � |k S )N)r )r r r r r r : r c C s t � |kS )N)r )r r r r r r ; r c C s t � |kS )N)r )r r r r r r <