Gnumed.pycommon.gmHooks

Package Gnumed :: Package pycommon :: Module gmHooks |
[frames] | no frames]

# Module gmHooks

source code

    GNUmed hooks framework.

    This module provides convenience functions and definitions
    for accessing the GNUmed hooks framework.

    This framework calls the script

            ~/.gnumed/scripts/hook_script.py

    at various times during client execution. The script must
    contain a function

    def run_script(hook=None):
            pass

    which accepts a single argument <hook>. That argument will
    contain the hook that is being activated.

Author: K. Hilbert <Karsten.Hilbert@gmx.net>

License: GPL v2 or later (details at http://www.gnu.org)

Functions
import_hook_module(reimport=False) | source code
run_hook_script(hook=None) | source code

Variables
| known_hooks = ``[``'``post_patient_activation``'``,` `'``post_person_creatio``...``
| hook_module = `None`
| __package__ = ``'``Gnumed.pycommon``'``
| hook = ``'``db_maintenance_warning``'``

Imports: os, sys, stat, logging, io, gmDispatcher, gmTools

Variables Details

  ### known_hooks Value:
      ['post_patient_activation',
       'post_person_creation',
       'after_waiting_list_modified',
       'shutdown-post-GUI',
       'startup-after-GUI-init',
       'startup-before-GUI',
       'request_user_attention',
       'app_activated_startup',
      ...