Skip to content
Snippets Groups Projects
Commit e6b5fa83 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Review callback.py documentation.

parent f933dd78
No related branches found
No related tags found
No related merge requests found
plugin_dbui.callback.INHIBIT_DELETE_UNDEF
=========================================
.. currentmodule:: plugin_dbui.callback
.. autofunction:: INHIBIT_DELETE_UNDEF
\ No newline at end of file
plugin_dbui.callback.INHIBIT_UPDATE_UNDEF
=========================================
.. currentmodule:: plugin_dbui.callback
.. autofunction:: INHIBIT_UPDATE_UNDEF
\ No newline at end of file
...@@ -8,13 +8,14 @@ from gluon import current ...@@ -8,13 +8,14 @@ from gluon import current
def INHIBIT_DELETE_UNDEF(set): def INHIBIT_DELETE_UNDEF(set):
"""Delete the row containing undefined value is not allowed """Inhibit the delete of the record containing the undefined value.
Args: Args:
set (gluon.dal.Set): set (gluon.dal.Set):
set of records used for deleted
Returns: Returns:
bool: true when the record contains the undefined value.
""" """
db, T = current.globalenv['db'], current.T db, T = current.globalenv['db'], current.T
...@@ -35,13 +36,17 @@ def INHIBIT_DELETE_UNDEF(set): ...@@ -35,13 +36,17 @@ def INHIBIT_DELETE_UNDEF(set):
def INHIBIT_UPDATE_UNDEF(set, values): def INHIBIT_UPDATE_UNDEF(set, values):
"""Update the row containing undefined value is not allowed """Inhibit the update the row containing the undefined value.
Args: Args:
set (gluon.dal.Set): set (gluon.dal.Set):
set of records for update
values (dict):
dictionary of database field used in the update.
Returns: Returns:
bool: true when the record contains the undefined value.
""" """
db, T = current.globalenv['db'], current.T db, T = current.globalenv['db'], current.T
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment