def value(self):
field_vals = None<EOL>field_names = self.fields_select.names()<EOL>fcount = len(field_names)<EOL>if fcount:<EOL><INDENT>d = self._query('<STR_LIT>')<EOL>if d:<EOL><INDENT>field_vals = [d.get(fn, None) for fn in field_names]<EOL>if fcount == <NUM_LIT:1>:<EOL><INDENT>field_vals = field_vals[<NUM_LIT:0>]<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return field_vals<EOL>
convenience method to just get one value or tuple of values for the query