Internal Messenging and Signal Dispatching


The gnumed client depends on two different types of messages:
Both types of messages are handled via a global dispatcher module called gmDispatcher.py [source]. The module gmPG.py [source] takes care of handling the asynchronous messages from the backend via a separate background thread.

Procedure changing "global" data that may affect any other widget, must post a message through gmDispatcher.

Widgets depending on backend data must register their interest through gmDispatcher.

A  table listing all available message labels ("signals") and their meanings can be found here . However, these message strings should never be hardcoded. Developers must instead use the embedding variables as listed in the module gmSignals.py [source].

Developers writing code that creates new signals must update this webpage via CVS.

Examples: