def disableAttributeDependency(self, dep): """ Disable attribute dependency to be displayed in the dialog. It disables the given attribute dependency to be displayed in the dialog, and it is removed from the cached. """ config.setResourceAttrDepsEnable(dep, False) if dep in self.cache['deps']: self.cache['deps'].remove(dep)
def enableAttributeDependency(self, dep): """ Enable attribute dependency to be displayed in the dialog. It enabled the given attribute dependency to be displayed in the dialog, and it cached internally in order to be re-initialized when dialog is closed. """ config.setResourceAttrDepsEnable(dep, True) if dep not in self.cache['deps']: self.cache['deps'].append(dep)
def disableAllAtributeDependencies(self): """ Disable all attributes dependencies cached. """ for dep in self.cache['deps']: config.setResourceAttrDepsEnable(dep, False)