Comments (1)
There exists one or two pull requests already, but none of them are backward-compatible as far as I know.
I've taken one step in the right direction, I've renamed "instance" to "vobject_instance", and made "instance" point to "vobject_instance" for legacy reasons. I've also delayed the object instantiation (ref #43), so that the vobject logic will only be called on when it's needed.
My next ideas:
- fix an "icalendar_instance" that returns an icalendar instance. As edits to the instance should be honored, only one instantiated object can be attached to the caldav object - if obj._vobject_instance is not None, then first set obj._data=obj._vobject_instance.serialize() and then set obj._vobject_instance to None before setting obj._icalendar_instance, and vice versa. (This won't be very optimal if both object types are frequently accessed, but that shouldn't really happen)
- Do some more research on it - is icalendar really better? The main argument for moving to icalendar was that vobject didn't support python3 and wasn't maintained. I also tried looking a bit into vobject myself to fix some bugs and such - but I found a rabbit hole - I didn't want to go deeper there. At least the maintainer situation has improved as far as I can understand ... maybe things aren't that bad anymore?
- If we decide to ditch vobject, then all code accessing the instance should be rewritten to support icalendar, the import of vobject should be done if/when someone calls on the vobject_instance, and vobject should be marked an optional dependency. (test code still needs to exercise this code path)
from caldav.
Related Issues (20)
- test_create_ical can be flaky on Python 3.12 HOT 1
- How do I add the valarm component? HOT 2
- Description field ot updated HOT 1
- 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
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.