Implement maintaining object relationship graph
For each object maintain parent-child relationship graph, i.e. list of
parent objects ('parents' property) and list of children objects ('children'
property).
Objects without parent(s) are objects specified in init manifest.
Objects without children are object of types that do not reuse other types.
This commit is contained in:
parent
10ca1c12fd
commit
7a0b697f4c
3 changed files with 43 additions and 0 deletions
|
|
@ -247,6 +247,13 @@ class CdistObject:
|
|||
lambda obj: os.path.join(obj.absolute_path, 'typeorder'))
|
||||
typeorder_dep = fsproperty.FileListProperty(
|
||||
lambda obj: os.path.join(obj.absolute_path, 'typeorder_dep'))
|
||||
# objects without parents are objects specified in init manifest
|
||||
parents = fsproperty.FileListProperty(
|
||||
lambda obj: os.path.join(obj.absolute_path, 'parents'))
|
||||
# objects without children are object of types that do not reuse other
|
||||
# types
|
||||
children = fsproperty.FileListProperty(
|
||||
lambda obj: os.path.join(obj.absolute_path, 'children'))
|
||||
|
||||
def cleanup(self):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue