AlkantarClanX12

Your IP : 18.222.51.159


Current Path : /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyc

�
��Yc@@s{dZddlmZddlZddlZddlmZddlmZddl	m
Z
dejfd��YZdS(	s�
raven.contrib.webpy
~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2013 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
i(tabsolute_importN(t
setup_logging(t
SentryHandler(tget_data_from_requesttSentryApplicationcB@s>eZdZed�Zd�Zd�Zd�Zd�ZRS(s�
    Web.py application for Sentry.

    >>> sentry = Sentry(client, mapping=urls, fvars=globals())

    Automatically configure logging::

    >>> sentry = Sentry(client, logging=True, mapping=urls, fvars=globals())

    Capture an exception::

    >>> try:
    >>>     1 / 0
    >>> except ZeroDivisionError:
    >>>     sentry.captureException()

    Capture a message::

    >>> sentry.captureMessage('hello, world!')
    cK@sH||_||_|jr1tt|j��ntjj||�dS(N(tclienttloggingRRtwebtapplicationt__init__(tselfRRtkwargs((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyR	)s
			c	O@s6|jjd|jd�dt�di|d6�dS(Ntexc_infotdatatextratapp(RtcaptureExceptiontgetR(R
targsR((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pythandle_exception0s
	cC@sEytjj|�SWn*tk
r@|jdtj���nXdS(NR(RRthandlet	ExceptionRtsysR(R
((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyR9s

cO@sS|jstd��|jd�}|dkr@t�|d<n|jj||�S(Ns5captureException called before application configuredR
(RtAssertionErrorRtNoneRR(R
RRR
((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyR@s
cO@sS|jstd��|jd�}|dkr@t�|d<n|jj||�S(Ns3captureMessage called before application configuredR
(RRRRRtcaptureMessage(R
RRR
((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyRHs
(	t__name__t
__module__t__doc__tFalseR	RRRR(((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyRs				(
Rt
__future__RRRt
raven.confRtraven.handlers.loggingRtraven.contrib.webpy.utilsRRR(((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyt<module>s