mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Remove Collection.has
It's the same as BaseCollection.has
This commit is contained in:
parent
de09f6689a
commit
5ccfe16372
1 changed files with 0 additions and 3 deletions
|
@ -633,9 +633,6 @@ class Collection(BaseCollection):
|
||||||
time.gmtime(os.path.getmtime(path)))
|
time.gmtime(os.path.getmtime(path)))
|
||||||
return Item(self, vobject.readOne(text), href, last_modified)
|
return Item(self, vobject.readOne(text), href, last_modified)
|
||||||
|
|
||||||
def has(self, href):
|
|
||||||
return self.get(href) is not None
|
|
||||||
|
|
||||||
def upload(self, href, vobject_item):
|
def upload(self, href, vobject_item):
|
||||||
if not is_safe_filesystem_path_component(href):
|
if not is_safe_filesystem_path_component(href):
|
||||||
raise UnsafePathError(href)
|
raise UnsafePathError(href)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue