'Returns the index of an entry based on the title of the entry
:type title: string
:param title: the title of the entry
:return: the index of the given entry or None'

def _index_for_title(self, title):

    if self._is_number(title):
        return title
    info = self.get_info_lines()
    for i in self._get_entry_indexes(info):
        info = self.get_info(i)
        if (info is None):
            continue
        lines = info.splitlines()
        looking_for = (('title=%s' % title), ('label=%s' % title))
        for line in lines:
            if (line in looking_for):
                return i
    return None
