From 427ec4403cec5134d55c0894363ebd9c3f676e0e Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 10 Feb 2006 11:42:16 -0800 Subject: [PATCH] support using a different container classes, through klass = StorageFolder, or other class... [git-p4: depot-paths = "//depot/": change = 738] --- ContentDirectory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ContentDirectory.py b/ContentDirectory.py index c8d3099..d94633e 100644 --- a/ContentDirectory.py +++ b/ContentDirectory.py @@ -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