Browse Source

remove web content when we delete the Item... This shouldn't stop

any transfers in progress, just stop new ones, and this will mean
that objects can finally die if/when they are deleted..

[git-p4: depot-paths = "//depot/": change = 816]
v0.3
John-Mark Gurney 18 years ago
parent
commit
5c6bf70efb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ContentDirectory.py

+ 3
- 0
ContentDirectory.py View File

@@ -76,6 +76,9 @@ class ContentDirectoryControl(UPnPPublisher, dict):
del self.children[id]
# Remove from parent
self.children[self[id].parentID].remove(self[id])
# Remove content
if hasattr(self[id], 'content'):
self.webbase.delEntity(id)
del self[id]

def getchildren(self, item):


Loading…
Cancel
Save