inveniosoftware / invenio-circulation

Library circulation module for Invenio.
https://invenio-circulation.readthedocs.io
MIT License
0 stars 18 forks source link

#52-loan-notifications #54

Closed topless closed 6 years ago

topless commented 6 years ago

Implements #52 and resolves user story #24.

On after method of a transition we fire a signal with the class that was triggered and the loan that was affected.

You can try it like

@loan_state_changed.connect
def listen_loan_changes(sender, loan, **extra):
    print(sender, loan)