/usr/lib/python3/dist-packages/piston3/signals.py is in python3-django-piston3 0.3~rc2-3ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | # Django imports
import django.dispatch
# Piston imports
from .utils import send_consumer_mail
def consumer_post_save(sender, instance, created, **kwargs):
send_consumer_mail(instance)
def consumer_post_delete(sender, instance, **kwargs):
instance.status = 'canceled'
send_consumer_mail(instance)
|