Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support event deletion #620

Open
HDembinski opened this issue May 30, 2024 · 4 comments
Open

Feature request: support event deletion #620

HDembinski opened this issue May 30, 2024 · 4 comments

Comments

@HDembinski
Copy link

Thanks for providing this library. Surprisingly, it does not offer an easy way to delete events from a calendar. There is nothing about deleting events in the documentation, and I only found this unhelpful SO entry.

The Calendar class mimics the dict interface, but does not support item removal as a dict would. I think it should, it is unpythonic.

Please add support for item removal, thanks!

@stevepiercy
Copy link
Member

Would this suggestion address your need? #125

@niccokunzmann
Copy link
Member

Let's close this when the documentation is updated on how to delete events. #125 is a good start.

@HDembinski
Copy link
Author

Thank you for the pointer, I see now how it is possible. Thank you for considering updating the documentation. It is not clear to me why one has to use the subcomponents property. Wouldn't it be more intuitive to support del calendar[key]? You are imitiating a dict interface.

@niccokunzmann
Copy link
Member

There are components that do not necessarily have a key and there are key/value pairs.

If you found out how to delete a specific event, would you like to report the code back and we can put something that is understandable by newcomers into the documentation?

Also, if you have an idea and example code of how you would like to use the del calendar[key] and other dict interface methods to work on events in a nicer way, could you post that as a new discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants