I have several address books with spaces in their names. If I configure them in the categories list with a space:
categories = Contacts,Emailed Contacts
then the _normalize_href function assertion x.startswith(self.session.url) fails, because href and x (the result of urljoin(session.url, href)) contain the quoted version of the category (Emailed%20Contacts), but session.url contain the unquoted version.
If I rather configure the categories list with a urlquoted-name:
categories = Contacts,Emailed%20Contacts
then the assertion still dies, because href and x now end up containing the unquoted version of the category...
I have several address books with spaces in their names. If I configure them in the
categorieslist with a space:then the
_normalize_hreffunction assertionx.startswith(self.session.url)fails, becausehrefandx(the result ofurljoin(session.url, href)) contain the quoted version of the category (Emailed%20Contacts), butsession.urlcontain the unquoted version.If I rather configure the
categorieslist with a urlquoted-name:then the assertion still dies, because
hrefandxnow end up containing the unquoted version of the category...