'Tries to locate a document in the archive.
This function tries to locate the document inside the archive. It
returns a tuple where the first element is zero if the function
was successful, and the second is the UnitInfo for that document.
The UnitInfo is used to retrieve the document contents'

def ResolveObject(self, document):

    if self.file:
        path = document
        return chmlib.chm_resolve_object(self.file, path)
    else:
        return (1, None)
