(self, tk, fields, values, key_fields, key_values)
Handler for deletes.
Handler for deletes.
Handler for deletes .
def parse_delete(self, tk, fields, values, key_fields, key_values):
        """Handler for deletes."""
        # pk1 = 'pk1' and pk2 = 'pk2'
        while 1:
            fld = tk.next()
            key_fields.append(fld)
            self.pklist.append(fld)
            if tk.next() != "=":
                raise Exception("syntax error")
            key_values.append(tk.next())
            t = tk.next()
            if t.lower() != "and":
                raise Exception("syntax error, expected AND, got "+repr(t))
def parse_delete ( self , tk , fields , values , key_fields , key_values ) : # pk1 = 'pk1' and pk2 = 'pk2' while 1 : fld = tk . next ( ) key_fields . append ( fld ) self . pklist . append ( fld ) if tk . next ( ) != "=" : raise Exception ( "syntax error" ) key_values . append ( tk . next ( ) ) t = tk . next ( ) if t . lower ( ) != "and" : raise Exception ( "syntax error, expected AND, got " + repr ( t ) )