Package schrodinger :: Package infra :: Module mmcheck :: Class ReturnCode
[hide private]
[frames] | no frames]

Class ReturnCode

A class to hold special return code values and translate return code values into names.

Instance Methods [hide private]
 
__init__(self)
 
add_code(self, module, name, value=None)
Add a code name and value to the object.
 
get_name(self, value)
Return the name associated with the value.
Class Variables [hide private]
  ok_pattern = re.compile(r'^[A-Z][A-Z0-9]*_OK$')
  error_pattern = re.compile(r'^[A-Z][A-Z0-9]*_(ERR(OR)?|BUMMER)$')
Method Details [hide private]

add_code(self, module, name, value=None)

 

Add a code name and value to the object. If value is not provided, look it up in the pymmlibs module from the name given.