Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
PositiveIntList Class Reference
Inheritance diagram for PositiveIntList:
Argument

Public Member Functions

def checkValidity
 
- Public Member Functions inherited from Argument
def __init__
 
def set
 
def isValid
 
def checkValidity
 
def warn
 
def printwarnings
 

Static Public Attributes

string NAME = "PositiveIntList"
 
- Static Public Attributes inherited from Argument
string NAME = "Argument"
 

Additional Inherited Members

- Data Fields inherited from Argument
 warnings
 
 value
 
 nextarg
 

Detailed Description

Definition at line 115 of file verify_missions.py.

Member Function Documentation

def checkValidity (   self)

Definition at line 119 of file verify_missions.py.

References 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().

120  def checkValidity(self):
121  if isinstance(self.value,list):
122  for val in self.value:
123  if isinstance(val,long) or isinstance(val,int):
124  if self.value < 0:
125  self.warn("Value %s is not a positive integer"%str(val))
126  return False
127  else:
128  self.warn("Value %s is not an integer, much less positive."%str(val))
129  return False
130  else:
131  self.warn("Value %s is not a list, much less a list of integers."%str(self.value))
132  return False
133  return True

Field Documentation

string NAME = "PositiveIntList"
static

Definition at line 117 of file verify_missions.py.


The documentation for this class was generated from the following file: