This is very important

This commit is contained in:
Florian Mounier 2016-08-12 15:05:05 +02:00
parent 416f9ddef1
commit c95437367f

View File

@ -321,7 +321,7 @@ class BaseCollection:
"""Upload a new item.""" """Upload a new item."""
raise NotImplementedError raise NotImplementedError
def upload_all(self, collections): def upload_all(self, vobject_items):
"""Upload a new set of items. """Upload a new set of items.
This takes a mapping of href and vobject items and This takes a mapping of href and vobject items and
@ -331,7 +331,7 @@ class BaseCollection:
""" """
return [ return [
self.upload(href, vobject_item) self.upload(href, vobject_item)
for href, vobject_item in collections.items() for href, vobject_item in vobject_items.items()
] ]
def update(self, href, vobject_item): def update(self, href, vobject_item):