|
string | NAME = "TextList" |
|
string | NAME = "Argument" |
|
Definition at line 327 of file verify_missions.py.
def checkValidity |
( |
|
self) | |
|
Definition at line 331 of file verify_missions.py.
References symtable.bool(), locale.str(), SaveVariableCondition.value, _Stop.value, Argument.value, ErrorDuringImport.value, Boolean.value, DateTime.value, MiniFieldStorage.value, SetSaveVariable.value, Morsel.value, GUIRadioButton.value, Argument.warn(), and Traverser.warn().
333 if not isinstance(self.
value,list):
336 for item
in self.
value:
337 if not isinstance(item,str):
338 if isinstance(item,tuple):
340 if not isinstance(item[0],str)
and isinstance(item[1],type(
bool(
True))):
341 self.
warn(
"item is not a (str,bool) pair")
344 if not (isinstance(item[0],str)
and isinstance(item[1],type(
bool(
True)))
and isinstance(item[2],str)):
345 self.
warn(
"item %s is not a (str,bool,str) triplet"%
str(item))
350 self.
warn(
"item %s has too many entries"%
str(item))
353 self.
warn(
"is not a list of strings")
The documentation for this class was generated from the following file: