iddb: "console" and "ioc" can now be used with the "list" command.
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-bii_scripts/bin/iddb new-bii_scripts/bin/iddb
--- old-bii_scripts/bin/iddb 2022-09-26 04:19:14.164475439 +0200
+++ new-bii_scripts/bin/iddb 2022-09-26 04:19:14.164475439 +0200
@@ -28,8 +28,11 @@
DEFAULT_COLUMNS= ["name", "devicename","key","prefix","application",
+EXTRA_COLUMNS= ["ioc", "console"]
+COLUMNS_STR= " ".join(sorted(COLUMNS))
# -----------------------------------------------
# Database access by file loading and StructuredData libraries
@@ -500,6 +503,11 @@
if not rx_group.match(n[col]):
# must skip this entry
n["SKIP"]= True
+ elif col=="ioc":
+ n[col]= query_obj.ioc(sd_key, must_exist= False, default="")
+ elif col=="console":
+ n[col]= query_obj.console(sd_key, must_exist= False,
+ default="")
raise AssertionError("internal error")
@@ -715,6 +723,8 @@
return the following columns in this order:
If columns are specified, only show these in the given order.
+ The list of all *available* columns is:
+ %(all_columns)s
Unless option --sort-by is used, sort the results by the first column.
Raw StructuredData access (note: most options except "--id" are ignore
@@ -740,7 +750,7 @@
If no command is given, the program performs the "list" command.
-''' % {"def_columns": DEFAULT_COLUMNS_STR}
+''' % {"all_columns": COLUMNS_STR, "def_columns": DEFAULT_COLUMNS_STR}
def script_shortname():
"""return the name of this script without a path component."""
patch d8ee53163272d25a8b3771c5dc97fcd9d756e1e4
Author: Goetz Pfeiffer <>
Date: Wed Dec 15 08:50:23 CET 2021
* iddb: "console" and "ioc" can now be used with the "list" command.
These columns are not part of the default list of columns but can be used when
they are explicitly given to the "list" command