/usr/lib/python2.7/dist-packages/piston/signals.py is in python-django-piston 0.2.3-2ubuntu1.
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)
|