geonode.social.signals

Django signals connections and associated receiver functions for geonode’s third-party ‘social’ apps which include announcements, notifications, relationships, actstream user_messages and potentially others

Attributes

logger

activity

ratings

ratings

Functions

activity_post_modify_object(sender, instance[, created])

Creates new activities after a Map, Dataset, or Document is created/updated/deleted.

relationship_post_save_actstream(instance, sender, ...)

relationship_pre_delete_actstream(instance, sender, ...)

relationship_post_save(instance, sender, created, **kwargs)

rating_post_save(instance, sender, created, **kwargs)

Send a notification when rating a layer, map or document

Module Contents

geonode.social.signals.logger[source]
geonode.social.signals.activity = None[source]
geonode.social.signals.ratings = None[source]
geonode.social.signals.ratings = True[source]
geonode.social.signals.activity_post_modify_object(sender, instance, created=None, **kwargs)[source]

Creates new activities after a Map, Dataset, or Document is created/updated/deleted.

action_settings: actor: the user who performed the activity action_object: the object that received the action created_verb: a translatable verb that is used when an object is created deleted_verb: a translatable verb that is used when an object is deleted object_name: the title of the object that is used to keep information about the object after it is deleted target: the target of an action updated_verb: a translatable verb that is used when an object is updated

raw_action: a constant that describes the type of action performed (values should be: created, uploaded, deleted)

geonode.social.signals.relationship_post_save_actstream(instance, sender, created, **kwargs)[source]
geonode.social.signals.relationship_pre_delete_actstream(instance, sender, **kwargs)[source]
geonode.social.signals.relationship_post_save(instance, sender, created, **kwargs)[source]
geonode.social.signals.rating_post_save(instance, sender, created, **kwargs)[source]

Send a notification when rating a layer, map or document