Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
 def disableAllAtributeDependencies(self):
     """ Disable all attributes dependencies cached.
     """
     for dep in self.cache['deps']:
         config.setResourceAttrDepsEnable(dep, False)