def __init__(self, ilsa): self._name = None self._action = MarkAction(ilsa) ilsa.add(self) self._ilsa = ilsa
class MarkPlugin(PluginBase): def __init__(self, ilsa): self._name = None self._action = MarkAction(ilsa) ilsa.add(self) self._ilsa = ilsa @property def ilsa(self): logging.debug("In MarkPlugin::ilsa()") return self._ilsa @property def action(self): logging.debug("In MarkAction::action()") return self._action @property def name(self): logging.debug("In MarkAction::name()") return self._name @name.setter def name(self, name): logging.debug("In MarkAction::name.setter()") self._name = name def notify(self, *args, **kwargs): logging.debug("In MarkPlugin::notify()") def save(self): logging.debug("In MarkPlugin::save()") value = self._action.save() save = {"type" : self.type, "value" : value} return save def restore(self, value=None): logging.debug("In MarkPlugin::restore()") if value: self._action.restore(value) @property def description(self): logging.debug("In MarkPlugin::description()") return "..." @property def separator(self): logging.debug("In MarkPlugin::separator()") return False @property def status(self): logging.debug("In MarkPlugin::status()") return True def addScene(self, scene): self._action.addScene(scene) def removeScene(self, scene): self._action.removeScene(scene)