Browse Source

if adding the Object returns None, don't add it... this would

cause an incomplete directory to be presented..

[git-p4: depot-paths = "//depot/": change = 1370]
main
John-Mark Gurney 15 years ago
parent
commit
0007f24224
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ContentDirectory.py

+ 2
- 0
ContentDirectory.py View File

@@ -101,6 +101,8 @@ class ContentDirectoryControl(UPnPPublisher, dict):

def addContainer(self, parent, title, klass = Container, *args, **kwargs):
ret = self.addObject(parent, klass, title, *args, **kwargs)
if ret is None:
return
self.children[ret] = self[ret]
return ret



Loading…
Cancel
Save