(self, project)
Get all project sequences from sequences table in db
Get all project sequences from sequences table in db
Get all project sequences from sequences table in db
def get_project_sequences(self, project):
        """ Get all project sequences from sequences table in db """

        connection = sqlite3.connect(self.SQL_FILE_PATH)
        cursor = connection.cursor()

        cursor.execute("SELECT * FROM sequences WHERE project=:project",
                       {'project': project.id})

        sequence_tuples = cursor.fetchall()
        sequence_objects = entities.Converter.convert_to_sequence(sequence_tuples)

        connection.close()

        # Clear list and append assets
        del self.project_sequences[:]
        for sequence in sequence_objects:
            self.project_sequences.append(sequence)
def get_project_sequences ( self , project ) : connection = sqlite3 . connect ( self . SQL_FILE_PATH ) cursor = connection . cursor ( ) cursor . execute ( "SELECT * FROM sequences WHERE project=:project" , { 'project' : project . id } ) sequence_tuples = cursor . fetchall ( ) sequence_objects = entities . Converter . convert_to_sequence ( sequence_tuples ) connection . close ( ) # Clear list and append assets del self . project_sequences [ : ] for sequence in sequence_objects : self . project_sequences . append ( sequence )