REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 966 B
Close
//proc/self/root/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/django/celery/__init__.py
Text
Base64
""" raven.contrib.django.celery ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from raven.contrib.django.client import DjangoClient try: from celery.task import task except ImportError: from celery.decorators import task # NOQA class CeleryClient(DjangoClient): def send_integrated(self, kwargs): return send_raw_integrated.delay(kwargs) def send_encoded(self, *args, **kwargs): return send_raw.delay(*args, **kwargs) @task(routing_key='sentry') def send_raw_integrated(kwargs): from raven.contrib.django.models import get_client super(DjangoClient, get_client()).send_integrated(kwargs) @task(routing_key='sentry') def send_raw(*args, **kwargs): from raven.contrib.django.models import get_client super(DjangoClient, get_client()).send_encoded(*args, **kwargs)
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
models.py
519 B
lrw-r--r--
2017-10-29 17:41:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
models.pyc
752 B
lrw-r--r--
2019-10-18 13:53:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tasks.py
293 B
lrw-r--r--
2017-10-29 17:41:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tasks.pyc
522 B
lrw-r--r--
2019-10-18 13:53:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
966 B
lrw-r--r--
2017-10-29 17:41:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.pyc
1.97 KB
lrw-r--r--
2019-10-18 13:53:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).