def __init__(my, app_node_name, app=None): my.app_node_name = app_node_name my.data = {} # get the attribute info if not app: my.info = BaseAppInfo.get() my.app = my.info.get_app() else: my.app = app my.init()
def __init__(self, app_node_name, app=None): self.app_node_name = app_node_name self.data = {} # get the attribute info if not app: self.info = BaseAppInfo.get() self.app = self.info.get_app() else: self.app = app self.init()
def __init__(self, node_name, file_type, path=""): self.file_type = file_type self.path = path self.info = BaseAppInfo.get() self.impl = self.info.get_app_implementation() self.app = self.info.get_app() self.node_name = node_name self.texture_paths = [] self.texture_nodes = [] self.texture_attrs = [] self.dependent_paths = []
def __init__(my, node_name, file_type, path=""): my.file_type = file_type my.path = path my.info = BaseAppInfo.get() my.impl = my.info.get_app_implementation() my.app = my.info.get_app() my.node_name = node_name my.texture_paths = [] my.texture_nodes = [] my.texture_attrs = [] my.dependent_paths = []
def is_tactic_node(cls, node_name): info = BaseAppInfo.get() app = info.get_app() return app.attr_exists(node_name, cls.ATTR_NAME)