Skip to content

v1.4.0

Compare
Choose a tag to compare
@jikamens jikamens released this 28 Feb 18:26
· 24 commits to master since this release
  • The TaskCache is now pass-through compatible with the Toodledo session object, meaning that all method calls available in the former are also available in the latter and vice versa, though some of them are no-ops in each object. That means that you can easily switch your code between accessing the data on the server directly and accessing it through the cache.
  • The TaskCache no longer updates automatically from the server whenever you add, edit, or delete tasks. Instead, it submits your changes to the server and updates the local cache to reflect them. This significantly improves the performance of the cache. To update the cache from the server, e.g., to fetch changes made outside of your code, call the update() method on the cache.
  • To make the API more Pythonic, the arguments to GetTasks can now be specified directly as keyword arguments, though the old syntax of putting them in the params dict is still supported for backward compatibility.
  • The cache now makes an effort to emulate the behavior of the server API with regard to default values for task fields that aren't specified explicitly when it is created.