Guillaume Ayoub 9 лет назад
Родитель
Сommit
50438bc2c0
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      radicale/storage.py

+ 0 - 5
radicale/storage.py

@@ -551,7 +551,6 @@ class Collection(BaseCollection):
         return self.get(href) is not None
         return self.get(href) is not None
 
 
     def upload(self, href, vobject_item):
     def upload(self, href, vobject_item):
-        # TODO: use returned object in code
         if not is_safe_filesystem_path_component(href):
         if not is_safe_filesystem_path_component(href):
             raise UnsafePathError(href)
             raise UnsafePathError(href)
         path = path_to_filesystem(self._filesystem_path, href)
         path = path_to_filesystem(self._filesystem_path, href)
@@ -563,8 +562,6 @@ class Collection(BaseCollection):
         return item
         return item
 
 
     def update(self, href, vobject_item, etag=None):
     def update(self, href, vobject_item, etag=None):
-        # TODO: use etag in code and test it here
-        # TODO: use returned object in code
         if not is_safe_filesystem_path_component(href):
         if not is_safe_filesystem_path_component(href):
             raise UnsafePathError(href)
             raise UnsafePathError(href)
         path = path_to_filesystem(self._filesystem_path, href)
         path = path_to_filesystem(self._filesystem_path, href)
@@ -580,8 +577,6 @@ class Collection(BaseCollection):
         return item
         return item
 
 
     def delete(self, href=None, etag=None):
     def delete(self, href=None, etag=None):
-        # TODO: use etag in code and test it here
-        # TODO: use returned object in code
         if href is None:
         if href is None:
             # Delete the collection
             # Delete the collection
             if os.path.isdir(self._filesystem_path):
             if os.path.isdir(self._filesystem_path):