Gnumed.gnumed

Package Gnumed :: Module gnumed |
[frames] | no frames]

# Module gnumed

source code

Author: H. Herb <hherb@gnumed.net>, K. Hilbert <Karsten.Hilbert@gmx.net>, I. Haywood <i.haywood@ugrad.unimelb.edu.au>

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

Functions
setup_fault_handler(target=None) | source code
setup_console_encoding() | source code
setup_python_path() | source code
setup_local_repo_path() | source code
setup_logging() | source code
log_startup_info() | source code
setup_console_exception_handler() | source code
setup_cli() | source code
handle_sig_term(signum, frame) | source code
setup_signal_handlers() | source code
setup_locale() | source code
handle_help_request() | source code
handle_version_request() | source code
setup_paths_and_files() Create needed paths in user home directory. | source code
setup_date_time() | source code
setup_cfg() Detect and setup access to GNUmed config file. | source code
setup_backend_environment() | source code
run_ui() | source code
run_tui() | source code
run_gui() | source code
run_tool() Run a console tool. | source code
shutdown_backend() | source code
shutdown_logging() | source code
shutdown_tmp_dir() | source code

Variables
| MANPAGE = `""".\\" ============================================`...``
| __doc__ = `""".\\" ============================================`...``
| current_client_version = `'head'`
| current_client_branch = `'master'`
| import_error_sermon = ``...``
| missing_cli_config_file = ``...``
| no_config_files = ``...``
| exit_code = `run_ui()`

Imports: sys, platform, tempfile, faulthandler, random, logging, datetime, signal, os, shutil, stat, regex, gmI18N, gmTools, gmDateTime, gmPG2, gmConnectionPool, gmHooks

Function Details

### setup_cfg() | source code
Detect and setup access to GNUmed config file. Parts of this will have limited value due to wxPython not yet being available.

### run_tool() | source code
    Run a console tool.

    Exit codes as per man page:
               0: normal termination of the client
             < 0: some error occurred while trying to run a console tool
                      -1: an unknown console tool was requested
                    < -1: an error occurred while a console tool was run
            -999: hard abort of the client

    One of these needs to be returned from this function (and,
    by extension from the tool having been run, if any).

Variables Details

  ### MANPAGE Value:
      """.\\" ========================================================
      .\\" SPDX-License-Identifier: GPL-2.0-or-later
      .\\" ========================================================

      .TH GNUmed 1 "%s" "Manual for GNUmed"

      .SH NAME
      .B GNUmed
      ...

  ### __doc__ Value:
      """.\\" ========================================================
      .\\" SPDX-License-Identifier: GPL-2.0-or-later
      .\\" ========================================================

      .TH GNUmed 1 "%s" "Manual for GNUmed"

      .SH NAME
      .B GNUmed
      ...

  ### import_error_sermon Value:
      """
      GNUmed startup: Cannot load GNUmed Python modules !
      ---------------------------------------------------
      CRITICAL ERROR: Program halted.

      Please make sure you have:

       1) the required third-party Python modules installed
      ...

  ### missing_cli_config_file Value:
      """
      GNUmed startup: Missing configuration file.
      -------------------------------------------

      You explicitly specified a configuration file
      on the command line:

      	--conf-file=%s
      ...

  ### no_config_files Value:
      """
      GNUmed startup: Missing configuration files.
      --------------------------------------------

      None of the below candidate configuration
      files could be found:

       %s
      ...