Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
PositiveInt Class Reference
Inheritance diagram for PositiveInt:
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 = "PositiveInt"
 
- 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 101 of file verify_missions.py.

Member Function Documentation

def checkValidity (   self)

Definition at line 105 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().

106  def checkValidity(self):
107  if isinstance(self.value,long) or isinstance(self.value,int):
108  if self.value < 0:
109  self.warn("Value %s is not a positive integer"%str(self.value))
110  return False
111  else:
112  self.warn("Value %s is not an integer, much less positive."%str(self.value))
113  return False
114  return True

Field Documentation

string NAME = "PositiveInt"
static

Definition at line 103 of file verify_missions.py.


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