bgneal@44: """ bgneal@919: Signals for the bio application bgneal@44: """ bgneal@471: import django.dispatch bgneal@204: bgneal@471: # bgneal@471: # This signal is sent whenever a profile has had its textual content updated. bgneal@471: # The provided arguments to the receiver function are: bgneal@471: # - sender - the profile model instance bgneal@471: bgneal@471: profile_content_update = django.dispatch.Signal(providing_args=[]) bgneal@471: bgneal@471: bgneal@471: def notify_profile_content_update(profile): bgneal@471: """ bgneal@471: Convenience function to send the profile content update signal. bgneal@471: bgneal@471: """ bgneal@471: profile_content_update.send_robust(profile)