Skip to content

Handlers

Racine Index / App / Models / Handlers

Auto-generated documentation for app.models.handlers module.

after_flush

Show source in handlers.py:95

  • check for any deleted samples or shares NB: This had to be done after the flush, because if a parent sample / mountpoint was deleted, the database would automatically set the corresponding foreign keys to NULL. Not sure if this still applies since we are not really deleting samples anymore.

Signature

def after_flush(session, flush_context): ...

deleted_sample_handler

Show source in handlers.py:7

Signature

def deleted_sample_handler(session, sample): ...

deleted_share_handler

Show source in handlers.py:62

Signature

def deleted_share_handler(session, share): ...