Commit 69db1105 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files


parent e40a2f44
""" set of callbacks
@author: R. Le Gac
"""a collections of functions to be used in _before_delete, before_insert
and _before_update callbacks.
from gluon import current
......@@ -15,11 +14,11 @@ def INHIBIT_CASCADE_DELETE(myset):
"""Inhibit the delete when at least one history row uses
the reference field.
@type myset: gluon.dal.Set
@param myset:
myset (gluon.dal.Set): set object used for delete
@rtype: bool
bool: ``True`` when the delete is inhibited
db, T = current.globalenv['db'], current.T
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment