Fix the owner attriubtion for 1+ depth URLs

This commit is contained in:
Guillaume Ayoub 2011-07-22 15:01:33 +02:00
parent 6bbf3f624f
commit 8f488eb6bc

View File

@ -177,7 +177,7 @@ class Calendar(object):
self.owner = split_path[0]
elif len(split_path) > 1:
# URL with at least one folder
self.owner = split_path[-1]
self.owner = split_path[0]
else:
self.owner = None
self.local_path = path if path != '.' else ''