fosKeyMan
Loading...
Searching...
No Matches
databasetable Namespace Reference

Script to typeset the database columns as markdown table (used in README). More...

Variables

list database_table
 
list key_state_table
 
 style
 
 style_kwargs
 

Detailed Description

Script to typeset the database columns as markdown table (used in README).

Author
Bertram Richter
Date
2024-08-07

Variable Documentation

◆ database_table

databasetable.database_table
Initial value:
1= [
2 ["Column Name", "Data Type", "Description"],
3 ["serial_number", "str", "Serial number of the senosr, used as primary key in the database"],
4 ["name", "str", "Human readable name of the DFOS"],
5 ["project", "str", "Project in which the DFOS is used"],
6 ["operator", "str", "Person responsible for the DFOS"],
7 ["specimen", "str", "Name of the specimen which the DFOS is attached to"],
8 ["dfos_type", "str", "Type of the cable itself (coating material, diameter, etc)"],
9 ["installation","str", "How the DFOS is installed at/in the specimen"],
10 ["status", "str", "State of the sensor (intact, defect, disposed, ...)"],
11 ["notes", "str", "Verbose description of the sensor and its use"],
12 ["keyfile", "binary", "The ODiSI key file as attachment"],
13 ["...", "...", "Optionally more data (to be continued)"],
14 ]

Definition at line 11 of file databasetable.py.

◆ key_state_table

databasetable.key_state_table
Initial value:
1= [
2 ["Activation", "Serial number in data base", "File attached", "Activation", "Optional actions"],
3 ["activated", "no", "no", "deactivate (move file)", "import (add key serial number and metadata and attach file)"],
4 ["deactivated", "no", "no", "activate (move file)", "import (add key serial number and metadata and attach file)"],
5
6 ["activated", "yes", "no", "deactivate (move file)", "attach file"],
7 ["deactivated", "yes", "no", "activate (move file)", "attach file"],
8
9 ["activated", "yes", "yes", "deactivate (move file)", "check file for identity: replace in database or on disk"],
10 ["deactivated", "yes", "yes", "activate (move file)", "check file for identity: replace in database or on disk"],
11
12 ["unknown", "yes", "no", "file is missing!", "warn"],
13 ["unknown", "yes", "yes", "activate (copy key file to disk)"],
14 ]

Definition at line 26 of file databasetable.py.

◆ style

databasetable.style

Definition at line 41 of file databasetable.py.

◆ style_kwargs

databasetable.style_kwargs

Definition at line 41 of file databasetable.py.