mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Check ETag before modifying or adding items.
This commit is contained in:
parent
71b928d58b
commit
f479b4ba67
3 changed files with 31 additions and 17 deletions
|
@ -174,6 +174,12 @@ class Calendar(object):
|
|||
|
||||
return items
|
||||
|
||||
def get_item(self, name):
|
||||
"""Get calendar item called ``name``."""
|
||||
for item in self.items:
|
||||
if item.name == name:
|
||||
return item
|
||||
|
||||
def append(self, name, text):
|
||||
"""Append items from ``text`` to calendar.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue