Your IP : 3.137.221.252
�
��Yc @@ s� d Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m
Z
d d l Z d d l Z d d l
Z
d d l Z d d l Z e j d
k Z d e j f d
� � YZ d e f d � � YZ d S( s�
raven.contrib.django.management.commands.raven
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2016 by the Sentry Team, see AUTHORS for more details
:license: BSD, see LICENSE for more details.
i ( t absolute_importt print_function( t BaseCommand( t make_option( t
store_jsont send_test_messageNi i t StoreJsonActionc B@ s e Z d d � Z RS( c C@ sj y t j | d � } Wn9 t k
rR t d | j | d f � t j d � n Xt | | j | � d S( Ni s2 Invalid JSON was used for option %s. Received: %si ( t jsont loadst
ValueErrort printt destt syst exitt setattr( t selft parsert namespacet valuest
option_stringt value( ( s_ /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/django/management/commands/raven.pyt __call__ s
N( t __name__t
__module__t NoneR ( ( ( s_ /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/django/management/commands/raven.pyR s t Commandc B@ s� e Z d Z e sp e j e d d d d e d d d d d d �e d
d d d e d d d d d d �f Z n d � Z d d
� Z
RS( s+ Commands to interact with the Sentry clients --datat actiont callbackt typet stringt nargsi R t datas --tagst tagsc C@ sU | j d d d �| j d d t d d d d �| j d d t d d d d �d S(
Nt commandR i s --dataR R R s --tagsR ( t add_argumentR ( R R ( ( s_ /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/django/management/commands/raven.pyt
add_arguments/ s
c O@ s} | d d g f k r/ t d � t j d � n d d l m } t | i | j d � d 6| j d � d 6� t j d � d S( Nt tests Usage: manage.py raven testi i ( t clientR R i ( R
R R
t raven.contrib.django.modelsR% R t gett timet sleep( R R! t argst optionsR% ( ( s_ /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/django/management/commands/raven.pyt handle<