Comments (5)
I'm against any changes breaking backward compatibility
from caldav.
from caldav.
Maybe the method can be renamed, but a "deprecated" alias can be preserved for backward-compatibility?
from caldav.
I've thought a bit on it, and decided to:
- Rename the add_* to save_*, with aliases for backwards compatibility. The aliases may be removed when 1.0 is released
- Add an attribute "no_overwrite" to the save_*-methods, defaults to False. If it's True, we'll do a lookup for any existing calendar item with the same uid, and raise an error if it already exists.
- Add an attribute "no_create" to the save_*-methods, defaults to False. If it's True, we'll do a lookup for any existing calendar item with the same uid, and raise an error if it doesn't already exist.
- Also, raise an error if both no_create and no_overwrite is set to True, as this combination is invalid.
Requires some test code as well ... probably won't get around to fix this today.
from caldav.
I decided to skip the point "raise an error if both no_create and no_overwrite is set to True, as this combination is invalid". It will pass if no object is given, and otherwise anyway give an error message. I should exercise it in the tests though ...
from caldav.
Related Issues (20)
- Baikal servers reportedly throwing 405 and 500 under HomeAssistant HOT 3
- User-Agent should be configurable HOT 1
- "MAILTO:" in uppercase in change_attendee_status HOT 1
- Change default User-Agent? HOT 1
- CalDAV iCloud Sign-in Error on Home Assistant: Path Handling Problem HOT 3
- Recurrent event with an exception instance leads to multiple `RECURRENCE-ID` values in the exception instance HOT 4
- Error 405 when using Propfind on some webdav servers HOT 6
- Recurrence instances gets stripped when doing `cal.object_by_uid(uid,comp_class=caldav.Event)`
- Improvements, test code and documentation needed for editing and selecting recurrence instances HOT 1
- Problem with accept invite in calendar HOT 5
- Regression: master version does not work towards calendar.mail.ru HOT 3
- Some server needs explicit event or task when doing search HOT 1
- Server compatibility hints
- why not grouping imports? HOT 3
- Does not exists release pipeline HOT 1
- Depend on deprecated vobject HOT 1
- implement support for JMAP protocol HOT 2
- Support RFC 7953 Availability
- Make logging configurable through environment variables
- Possibly the server has a path handling problem, possibly the URL configured is wrong. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caldav.