':return: A list of all objects of class == klass that are saved in the
kb.'

@requires_setup
def get_all_entries_of_class(self, klass):

    query = 'SELECT    pickle    FROM    %s'
    results = self.db.select((query % self.table_name))
    result_lst = []
    for r in results:
        obj = cPickle.loads(r[0])
        if isinstance(obj, klass):
            result_lst.append(obj)
    return result_lst
