Fix autodiscovery for radicale

See https://github.com/Kozea/Radicale/pull/95#issuecomment-50314561
This commit is contained in:
Markus Unterwaditzer 2014-08-04 11:37:25 +02:00
parent 574869f619
commit 667c10ef00

View file

@ -61,8 +61,8 @@ class Discover(object):
:returns: a list of the user's collections (as urls)
:rtype: list(unicode)
"""
for principal in self._find_principal():
for home in self._find_home(principal):
for principal in list(self._find_principal()) or ['']:
for home in list(self._find_home(principal)) or ['']:
for collection in self._find_collections(home):
yield collection