![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, whichcommand, args, db) | |
add_arguments (self) | |
get_iovs (self) | |
modify_db (self, func, func_args, whichcommand=None) | |
Public Attributes | |
str | whichcommand = whichcommand |
from whichcommand it is called (copy, delete or modify) | |
db = db | |
conditions_db.ConditionsDB instance | |
iovfilter = ItemFilter(args) | |
ItemFilter. | |
num_all_iovs = None | |
number of iovs before payload and revision selection | |
dict | past_dict = {"delete": "deleted", "modify": "modified", "copy": "copied", "create": "created"} |
Dictionary with past participles. | |
Protected Attributes | |
_args = args | |
argparse.ArgumentParser instance | |
Class to unify common parts of b2conditionsdb iovs commands This class defines common argparse arguments, common filter of iovs and common multithreading
Definition at line 488 of file cli_management.py.
__init__ | ( | self, | |
whichcommand, | |||
args, | |||
db ) |
initialization, just remember the arguments or parser and the database instance Args: whichcommand (str): from whichcommand it is called (copy, delete or modify) args (argparse.ArgumentParser): where to append new arguments db (conditions_db.ConditionsDB): database instance to be used
Definition at line 496 of file cli_management.py.
add_arguments | ( | self | ) |
Add arguments to the parser
Definition at line 518 of file cli_management.py.
get_iovs | ( | self | ) |
Get the iovs already filtered
Definition at line 561 of file cli_management.py.
modify_db | ( | self, | |
func, | |||
func_args, | |||
whichcommand = None ) |
Modify the database using multithreading
Definition at line 586 of file cli_management.py.
|
protected |
argparse.ArgumentParser instance
Definition at line 508 of file cli_management.py.
db = db |
conditions_db.ConditionsDB instance
Definition at line 510 of file cli_management.py.
iovfilter = ItemFilter(args) |
Definition at line 512 of file cli_management.py.
num_all_iovs = None |
number of iovs before payload and revision selection
Definition at line 514 of file cli_management.py.
dict past_dict = {"delete": "deleted", "modify": "modified", "copy": "copied", "create": "created"} |
Dictionary with past participles.
Definition at line 516 of file cli_management.py.
str whichcommand = whichcommand |
from whichcommand it is called (copy, delete or modify)
Definition at line 506 of file cli_management.py.