ticketmodifiedfiles/api.py
def _save_ticket_references(self, repos, revision, tickets):
        """Saves the ticket references by revision."""

        @self.env.with_transaction()
        def do_save(db):
            cursor = db.cursor()
            
            for ticket in tickets:
                try:
                    cursor.execute("""
                        INSERT INTO ticketmodifiedfiles (repos, rev, ticket)
                        VALUES(%s, %s, %s)
                        """, (repos.id, revision.rev, ticket))
                except Exception, e:
                    # catch duplicate key errors and ignore them
                    if 'IntegrityError' not in e.__class__.__name__:
                        raise e
Saves the ticket references by revision.
Saves the ticket references by revision.
Saves the ticket references by revision .
def _save_ticket_references(self, repos, revision, tickets):
        @self.env.with_transaction()
        def do_save(db):
            cursor = db.cursor()
            for ticket in tickets:
                try:
                    cursor.execute("""
                        INSERT INTO ticketmodifiedfiles (repos, rev, ticket)
                        VALUES(%s, %s, %s)
                        """, (repos.id, revision.rev, ticket))
                except Exception, e:
                    if 'IntegrityError' not in e.__class__.__name__:
                        raise e
def _save_ticket_references ( self , repos , revision , tickets ) : @ self . env . with_transaction ( ) def do_save ( db ) : cursor = db . cursor ( ) for ticket in tickets : try : cursor . execute ( """
                        INSERT INTO ticketmodifiedfiles (repos, rev, ticket)
                        VALUES(%s, %s, %s)
                        """ , ( repos . id , revision . rev , ticket ) ) except Exception , e : if 'IntegrityError' not in e . __class__ . __name__ : raise e
Saves the ticket references by revision.
Saves the ticket references by revision .
"""Saves the ticket references by revision.""" # catch duplicate key errors and ignore them
self
repos
revision
tickets