3 ##########################
7 from bl_instance
.build_bl
import *
9 from archiving
import *
10 ########################
16 ############################################################################
17 if __name__
== '__main__':
21 print "\nCorrect use: " + sys
.argv
[0] + " start/stop/check ATTR_FULLNAME [tdb/hdb]\n"
25 attr_fullname
= sys
.argv
[2]
29 for elem
in beam_path
+ continuous_env
:
31 attrs_params
= dict( [(p
.attr_fullName
, p
) for p
in (elem
.params
)] )
33 if attr_fullname
in attrs_params
.keys():
34 archi_mode
= attrs_params
[attr_fullname
].archiving_mode
.split()
39 print "\nCorrect use: " + sys
.argv
[0] + " start/stop/check ATTR_FULLNAME [tdb/hdb]\n"
40 print "Invalid ATTR_FULLNAME"
44 if len(sys
.argv
) == 4:
48 attrs_archiModes
= dict( [(attr_fullname
, archi_mode
)] )
50 attrs_archiModes
= dict( [(attr_fullname
, ['MODE_P', '1000'])] )
53 archiving(attrs_archiModes
, action
, db
)