Revision 21e0fdad snf-astakos-app/astakos/im/functions.py

b/snf-astakos-app/astakos/im/functions.py
72 72
    membership_change_notify,
73 73
    application_submit_notify, application_approve_notify,
74 74
    project_termination_notify, project_suspension_notify)
75
from astakos.im.endpoints.qh import qh_register_user
75 76

  
76 77
import astakos.im.messages as astakos_messages
77 78

  
......
297 298
    if not user.activation_sent:
298 299
        user.activation_sent = datetime.now()
299 300
    user.save()
301
    qh_register_user(user)
300 302
    send_helpdesk_notification(user, helpdesk_email_template_name)
301 303
    send_greeting(user, email_template_name)
302 304

  
305
def deactivate(user):
306
    user.is_active = False
307
    user.save()
308

  
303 309
def invite(inviter, email, realname):
304 310
    inv = Invitation(inviter=inviter, username=email, realname=realname)
305 311
    inv.save()

Also available in: Unified diff