def _getInputValue(self, obj, fieldName):
if isinstance(obj, dict):<EOL><INDENT>if not fieldName in obj:<EOL><INDENT>knownFields = "<STR_LIT:U+002CU+0020>".join(<EOL>key for key in list(obj.keys()) if not key.startswith("<STR_LIT:_>")<EOL>)<EOL>raise ValueError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % (<EOL>fieldName, knownFields, fieldName<EOL>)<EOL>)<EOL><DEDENT>return obj[fieldName]<EOL><DEDENT>else:<EOL><INDENT>return getattr(obj, fieldName)<EOL><DEDENT>
Gets the value of a given field from the input record