Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def disableAllAtributeDependencies(self):
     """ Disable all attributes dependencies cached.
     """
     for dep in self.cache['deps']:
         config.setResourceAttrDepsEnable(dep, False)