(self, ev)
Extract row data from event, with optional encoding fixes.

        Returns either string (sql event) or dict (urlenc event).
Extract row data from event, with optional encoding fixes.
Extract row data from event with optional encoding fixes .
def parse_row_data(self, ev):
        """Extract row data from event, with optional encoding fixes.

        Returns either string (sql event) or dict (urlenc event).
        """

        if len(ev.type) == 1:
            if not self.allow_sql_event:
                raise Exception('SQL events not supported by this handler')
            if self.encoding_validator:
                return self.encoding_validator.validate_string(ev.data, self.table_name)
            return ev.data
        else:
            row = skytools.db_urldecode(ev.data)
            if self.encoding_validator:
                return self.encoding_validator.validate_dict(row, self.table_name)
            return row
def parse_row_data ( self , ev ) : if len ( ev . type ) == 1 : if not self . allow_sql_event : raise Exception ( 'SQL events not supported by this handler' ) if self . encoding_validator : return self . encoding_validator . validate_string ( ev . data , self . table_name ) return ev . data else : row = skytools . db_urldecode ( ev . data ) if self . encoding_validator : return self . encoding_validator . validate_dict ( row , self . table_name ) return row