Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a joined independently signal

  • Loading branch information...
commit 70f00bdb828d5bc1f36f5c6ef37a960fc7c698b8 1 parent c86569d
Patrick Altman paltman authored

Showing 3 changed files with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 docs/signals.rst
  2. +2 0  kaleo/models.py
  3. +1 0  kaleo/signals.py
7 docs/signals.rst
Source Rendered
@@ -19,3 +19,10 @@ kaleo.signals.invite_accepted
19 19
20 20 This signal is sent immediately after the acceptance of the invitation
21 21 has been processed.
  22 +
  23 +
  24 +kaleo.signals.joined_independently
  25 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  26 +
  27 +This signal is sent when someone signs up using the same email address
  28 +that exist for an invitation and they confirm that email address.
2  kaleo/models.py
@@ -56,6 +56,8 @@ def process_independent_joins(cls, user, email):
56 56 invite.to_user = user
57 57 invite.status = cls.STATUS_JOINED_INDEPENDENTLY
58 58 invite.save()
  59 + joined_independently.send(sender=cls, invitation=invite)
  60 +
59 61 @classmethod
60 62 def invite(cls, from_user, to_email, message=None):
61 63 if not from_user.invitationstat.can_send():
1  kaleo/signals.py
@@ -3,3 +3,4 @@
3 3
4 4 invite_sent = django.dispatch.Signal(providing_args=["invitation"])
5 5 invite_accepted = django.dispatch.Signal(providing_args=["invitation"])
  6 +joined_independently = django.dispatch.Signal(providing_args=["invitation"])

0 comments on commit 70f00bd

Please sign in to comment.
Something went wrong with that request. Please try again.