Belle II Software development
|
Public Member Functions | |
def | __init__ (self, whichcommand, args, db) |
def | add_arguments (self) |
def | get_iovs (self) |
def | modify_db (self, func, func_args, whichcommand=None) |
Public Attributes | |
whichcommand | |
from whichcommand it is called (copy, delete or modify) | |
db | |
conditions_db.ConditionsDB instance | |
iovfilter | |
ItemFilter. | |
num_all_iovs | |
number of iovs before payload and revision selection | |
past_dict | |
Dictionary with past participles. | |
Protected Attributes | |
_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.
def __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.
def add_arguments | ( | self | ) |
Add arguments to the parser
Definition at line 518 of file cli_management.py.
def get_iovs | ( | self | ) |
Get the iovs already filtered
Definition at line 561 of file cli_management.py.
def 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 |
conditions_db.ConditionsDB instance
Definition at line 510 of file cli_management.py.
iovfilter |
ItemFilter.
Definition at line 512 of file cli_management.py.
num_all_iovs |
number of iovs before payload and revision selection
Definition at line 514 of file cli_management.py.
past_dict |
Dictionary with past participles.
Definition at line 516 of file cli_management.py.
whichcommand |
from whichcommand it is called (copy, delete or modify)
Definition at line 506 of file cli_management.py.