|
def | __setattr__ (self, name, n_value) |
|
def | __str__ (self) |
|
def | is_locked (self) |
|
def | help (self) |
|
def | import_JobProperties (self, module_name) |
|
def | import_Flags (self, module_name) |
|
def | add_Container (self, new_container) |
|
def | add_JobProperty (self, new_flag) |
|
def | del_JobProperty (self, del_flag) |
|
def | del_Container (self, del_container) |
|
def | lock_JobProperties (self) |
|
def | unlock_JobProperties (self) |
|
def | print_JobProperties (self, mode='minimal') |
|
def | set_JobProperties (self, data) |
|
def | __getattribute__ (self, name) |
|
The global job properties container.
- This will be the unique container with 'global' context
and the rest of the containers or general job properties
will be added to this container.
- The job properties/containers added to this container do not
need to be instances. The instance is created and associated to
context at the time the job properties/container is added.
User needs only to define the job properties/container he/she
want to add.
Definition at line 775 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.print_JobProperties |
( |
|
self, |
|
|
|
mode = 'minimal' |
|
) |
| |
|
inherited |
Prints all the JobProperties in the container.
It will print also the JobProperties within the sub-containers
present in the container.
The available options are: 'minimal','full','tree','tree&value','tree&valuenondefault'
Definition at line 673 of file JobProperties.py.
673 def print_JobProperties(self,mode='minimal'):
674 """Prints all the JobProperties in the container.
676 It will print also the JobProperties within the sub-containers
677 present in the container.
679 The available options are: 'minimal','full','tree','tree&value','tree&valuenondefault'
682 if self._context_name.
count(
'.')==0:
684 if (mode==
'tree&valuenondefault'):
685 additionalinfo=
"(Only non default values)"
686 if mode !=
"minimal":
687 additionalinfo+=
"(X indicates locked properties)"
689 self._log.
info(
"### Printing the job properties container %s %s ###",
690 self.__name__ ,additionalinfo)
692 if(mode==
'tree' or mode.startswith(
'tree&value')):
693 print (
' [-]'+self.__name__)
695 elif(mode==
'print_v'):
696 print_view+=
' [-]'+self.__name__+
'\n'+
' | '+
'\n'
698 self._log.
info(
' [-]'+self.__name__)
701 m=self.__dict__.
get(k)
702 if hasattr(m,
'print_JobProperty'):
703 m.print_JobProperty(mode)
705 print_view+=
str(m)+
'\n'
706 elif hasattr(m,
'print_JobProperties'):
708 for i
in range(m._context_name.count(
'.')-1):
710 if(mode==
'tree' or mode.startswith(
'tree&value')):
711 print (
' /'+indent+
'> ## '+m.__name__+
' ## ')
712 elif(mode==
'print_v'):
713 print_view+=
' /'+indent+
'> ## '+m.__name__+
' ## '+
'\n'
715 self._log.
info(
' /'+indent+
'> ## '+m.__name__+
' ## ')
718 print_view+=m.print_JobProperties(mode)
720 m.print_JobProperties(mode)
724 if self._context_name.
count(
'.')==0:
725 self._log.
info(
"### Ends the job properties container %s ###",