Skip to content

Commit

Permalink
fixed lane_change_invitation
Browse files Browse the repository at this point in the history
rref #5367
rref #5366

ref #66
ref #65
  • Loading branch information
evrenesat committed Jul 26, 2016
1 parent 6e59ebd commit b803a2f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions zengine/receivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@
'set_password',
]




from pyoko.conf import settings
from zengine.dispatch.dispatcher import receiver
from zengine.signals import lane_user_change, crud_post_save


DEFAULT_LANE_CHANGE_INVITE_MSG = {
'title': settings.MESSAGES['lane_change_invite_title'],
'body': settings.MESSAGES['lane_change_invite_body'],
Expand Down Expand Up @@ -48,11 +44,11 @@ def send_message_for_lane_change(sender, *args, **kwargs):
for recipient in owners:
if not isinstance(recipient, UserModel):
recipient = recipient.get_user()
Notify(recipient.key).set_message(title=_(msg_context['title']),
msg=_(msg_context['body']),
typ=Notify.TaskInfo,
url=current.get_wf_link()
)
recipient.send_notification(title=_(msg_context['title']),
message=_(msg_context['body']),
typ=Notify.TaskInfo,
url=current.get_wf_link()
)


# encrypting password on save
Expand Down

0 comments on commit b803a2f

Please sign in to comment.