Closed robgolding closed 8 years ago
Thanks for looking into this, looks good!
I wonder, should we also override these methods for LazyUUIDTaskSet?
I don't think so, since child attributes are descended into and the __copy__
method is called, we get that for free anyway :)
Just added a test which actually does fail without this fix, so I'll be happy if everything passes!
Fixes #41
Fairly small change to fix this bug! Since we do a
deepcopy
of all the task's data attributes after loading from JSON, and a recurring task has a parent, we were trying to copy aLazyUUIDTask
. That meant we tried to load it in viareplace()
, and caused an infinite loop.Since they're lazy by definition, the copy is implemented as just a new object with the same UUID.
Still needs a suitable test!