tools/cr/cr/plugin.py
def Init(self):
    """Post plugin registration initialisation method."""
    for config_root in CONFIG_TYPES:
      config = getattr(self, config_root.property_name)
      config.name = self.name
      if config_root.only_active and not self.is_active:
        config.enabled = False
      if config_root.only_enabled and not self.enabled:
        config.enabled = False
      child = getattr(self.__class__, config_root.name, None)
      if child is not None:
        child.name = self.__class__.__name__
        config.AddChild(child)
      config_root.AddChild(config)
Post plugin registration initialisation method.
Post plugin registration initialisation method.
Post plugin registration initialisation method .
def Init(self):
    for config_root in CONFIG_TYPES:
      config = getattr(self, config_root.property_name)
      config.name = self.name
      if config_root.only_active and not self.is_active:
        config.enabled = False
      if config_root.only_enabled and not self.enabled:
        config.enabled = False
      child = getattr(self.__class__, config_root.name, None)
      if child is not None:
        child.name = self.__class__.__name__
        config.AddChild(child)
      config_root.AddChild(config)
def Init ( self ) : for config_root in CONFIG_TYPES : config = getattr ( self , config_root . property_name ) config . name = self . name if config_root . only_active and not self . is_active : config . enabled = False if config_root . only_enabled and not self . enabled : config . enabled = False child = getattr ( self . __class__ , config_root . name , None ) if child is not None : child . name = self . __class__ . __name__ config . AddChild ( child ) config_root . AddChild ( config )
Post plugin registration initialisation method.
Post plugin registration initialisation method .
"""Post plugin registration initialisation method."""
self