'Returns True if imname has been indexed.'

def is_indexed(self, imname):

    im = self.con.execute(("select    rowid    from    imlist    where    filename='%s'" % imname)).fetchone()
    return (im != None)
