Commit Graph

8 Commits

Author SHA1 Message Date
Bruno Bord 028305289e
The ``IsoRegistry.items()`` method has been removed from the API
This is a **BREAKING CHANGE**.
You must use the ``get_calendars()`` to perform the same registry queries
refs #375, closes #491.
2020-04-24 11:48:32 +02:00
Bruno Bord 1624504024
Iso Registry API modification:
the `items()` method is to be renamed into `get_calendars`.
2019-12-06 16:07:41 +01:00
Bruno Bord 07c9acc27f
ISO Registry ``items()`` method to allow an empty or None "search" argument.
* ``items()`` would return the full list of calendars.
* ``items([list of codes...])`` would return a dictionary of calendars whose codes are in the registry. Unkown codes would be skipped. Sub-regions codes would be allowed (e.g.: ``items(['CA-AB', 'AU-NT'])`` would return the Canada Alberta & Australia Northern Territory calendars)
* ``items([list of codes...], include_subregions=True)`` same as above, except that you would get also subregions when they exist.
2019-12-06 16:06:54 +01:00
Christopher Wittlinger 11c64a6895 Corrected the Readme and supplied unit test for the Geneva calendar 2019-11-18 16:38:07 +01:00
Bruno Bord 8fe6bfcc49
Global registry now returns plain built-in dicts instead of OrderedDict's
refs #375 and somehow refers to #288 ; when it has been raised here: https://github.com/peopledoc/workalendar/issues/288#issuecomment-495668973
2019-07-11 15:21:01 +02:00
Bruno Bord 7ef41145bb Change registry mechanism to avoid circular imports
refs #288
2019-06-07 15:38:06 +02:00
Bruno Bord b28aa2bd6e Back to dev: 3.1.0.dev0 2018-09-20 13:52:18 +02:00
Bruno Bord 5cd2a51381 Typo fix: registry is the container, register is the verb 2018-09-20 13:26:58 +02:00