Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Cisphyx committed Jun 3, 2024
1 parent 0f0e2a1 commit 0d339fa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions synapse/cortex.py
Original file line number Diff line number Diff line change
Expand Up @@ -4498,12 +4498,15 @@ async def _addView(self, vdef):

async def delViewWithLayer(self, iden):
'''
Delete a Cortex View and its write Layer by iden.
Delete a Cortex View and its write Layer if not in use by other View stacks.
Note:
Any children of the View will have their parent view updated to
the deleted View's parent (if present). The deleted layer will also
be removed from any Views which contain it in their layer stack.
Any children of the View will have their parent View updated to
the deleted View's parent (if present). The deleted View's write Layer
will also be removed from any child Views which contain it in their
Layer stack. If the Layer is used in Views which are not children of
the deleted View, the Layer will be preserved, otherwise it will be
deleted as well.
'''
view = self.views.get(iden)
if view is None:
Expand Down

0 comments on commit 0d339fa

Please sign in to comment.