blob: 3be7c8554254fa43d00da09d79399ca60d59a963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from rrule import *
class rrulewrapper:
def __init__(self, freq, **kwargs):
self._construct = kwargs.copy()
self._construct["freq"] = freq
self._rrule = rrule(**self._construct)
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
return getattr(self._rrule, name)
def set(self, **kwargs):
self._construct.update(kwargs)
self._rrule = rrule(**self._construct)
|