Definition at line 12 of file AutoConfigFlags.py.
◆ __init__()
def python.AutoConfigFlags.DynamicallyLoadMetadata.__init__ |
( |
|
self, |
|
|
|
filename, |
|
|
|
maxLevel = 'peeker' |
|
) |
| |
Definition at line 13 of file AutoConfigFlags.py.
13 def __init__(self, filename, maxLevel='peeker'):
15 self.filename = filename
16 self.currentAccessLevel =
'lite'
17 self.maxAccessLevel = maxLevel
19 self.metadata.
update(thisFileMD[self.filename])
20 msg.debug(
"Loaded using 'lite' %s",
str(self.metadata))
◆ __contains__()
def python.AutoConfigFlags.DynamicallyLoadMetadata.__contains__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
◆ __getitem__()
def python.AutoConfigFlags.DynamicallyLoadMetadata.__getitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
◆ __repr__()
def python.AutoConfigFlags.DynamicallyLoadMetadata.__repr__ |
( |
|
self | ) |
|
◆ _loadMore()
def python.AutoConfigFlags.DynamicallyLoadMetadata._loadMore |
( |
|
self, |
|
|
|
level |
|
) |
| |
|
private |
Definition at line 22 of file AutoConfigFlags.py.
22 def _loadMore(self, level):
23 self.currentAccessLevel = level
26 self.metadata.
update(thisFileMD[self.filename])
◆ get()
def python.AutoConfigFlags.DynamicallyLoadMetadata.get |
( |
|
self, |
|
|
|
key, |
|
|
|
default |
|
) |
| |
Definition at line 28 of file AutoConfigFlags.py.
28 def get(self, key, default):
29 if key
in self.metadata:
30 return self.metadata[key]
31 if key
in lite_primary_keys_to_keep
or key
in lite_TagInfo_keys_to_keep:
35 if self.currentAccessLevel == self.maxAccessLevel:
39 if self.currentAccessLevel ==
'lite':
40 levels = [
'peeker',
'full']
if self.maxAccessLevel ==
'full' else [
'peeker']
41 elif self.currentAccessLevel ==
'peeker':
45 msg.info(
"Looking into the file in '%s' mode as the configuration requires more details: %s ", level, key)
47 if key
in self.metadata:
48 return self.metadata[key]
◆ keys()
def python.AutoConfigFlags.DynamicallyLoadMetadata.keys |
( |
|
self | ) |
|
◆ currentAccessLevel
python.AutoConfigFlags.DynamicallyLoadMetadata.currentAccessLevel |
◆ filename
python.AutoConfigFlags.DynamicallyLoadMetadata.filename |
◆ maxAccessLevel
python.AutoConfigFlags.DynamicallyLoadMetadata.maxAccessLevel |
◆ metadata
python.AutoConfigFlags.DynamicallyLoadMetadata.metadata |
The documentation for this class was generated from the following file: