`self.system` isn't provided by `XBlock`, only by `XModule`. `CapaMixin` should use `self.runtime` instead (they mean the same thing, but `runtime` is the attribute name used by `XBlocks`).