blob: da4fa855ebad9a7b0355d08ac54924c03eec8c45 [file] [log] [blame]
from rrule import *
class rrulewrapper(object):
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)