Coder Social home page Coder Social logo

Comments (1)

tobixen avatar tobixen commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.