Package portage :: Package util :: Class ConfigProtect
[hide private]

Class ConfigProtect

source code

object --+
         |
        ConfigProtect

Instance Methods [hide private]
 
__init__(self, myroot, protect_list, mask_list, case_insensitive=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
updateprotect(self)
Update internal state for isprotected() calls.
source code
 
isprotected(self, obj)
Returns True if obj is protected, False otherwise.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, myroot, protect_list, mask_list, case_insensitive=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

updateprotect(self)

source code 

Update internal state for isprotected() calls. Nonexistent paths are ignored.

isprotected(self, obj)

source code 

Returns True if obj is protected, False otherwise. The caller must ensure that obj is normalized with a single leading slash. A trailing slash is optional for directories.