Browse Source

support using a different container classes, through

klass = StorageFolder, or other class...

[git-p4: depot-paths = "//depot/": change = 738]
replace/4e84fdb41ea781c7a8f872baa423e8b3be4045a7
John-Mark Gurney 19 years ago
parent
commit
427ec4403c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ContentDirectory.py

+ 2
- 2
ContentDirectory.py View File

@@ -37,8 +37,8 @@ class ContentDirectoryControl(UPnPPublisher, dict):
self.nextID += 1
return ret

def addContainer(self, parent, title, **kwargs):
ret = self.addItem(parent, Container, title, **kwargs)
def addContainer(self, parent, title, klass = Container, **kwargs):
ret = self.addItem(parent, klass, title, **kwargs)
self.children[ret] = []
return ret



Loading…
Cancel
Save