\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\W}[1]{ \; #1 \; }\)
python_log_command¶
View page sourceLog A Python Command¶
Prototype¶
def log_command( begin_end, database, command_name, arg_list ):
assert begin_end == "begin" or begin_end == "end"
assert type(database) == str
assert type(command_name) == str
assert type(arg_list) == list
for arg in arg_list :
assert type(arg) == str
begin_end¶
is this the beginning or end of a command.
database is the database that this command acts on.
command_name¶
is the name of this command; e.g., db2csv.
arg_list¶
Is the argument list for this command starting with arg_list[0] which is the dismod_at database for this command.