|
|
@@ -36,9 +36,10 @@ class Object: |
|
|
|
res = None |
|
|
|
writeStatus = None |
|
|
|
|
|
|
|
def __init__(self, id, parentID, title, restricted = False, |
|
|
|
def __init__(self, cd, id, parentID, title, restricted = False, |
|
|
|
creator = None): |
|
|
|
|
|
|
|
self.cd = cd |
|
|
|
self.id = id |
|
|
|
self.parentID = parentID |
|
|
|
self.title = title |
|
|
@@ -203,19 +204,20 @@ class PlaylistItem(Item): |
|
|
|
class TextItem(Item): |
|
|
|
klass = Item.klass + '.textItem' |
|
|
|
|
|
|
|
class Container(Object): |
|
|
|
class Container(Object, list): |
|
|
|
"""An object that can contain other objects.""" |
|
|
|
|
|
|
|
klass = Object.klass + '.container' |
|
|
|
|
|
|
|
elementName = 'container' |
|
|
|
childCount = 0 |
|
|
|
childCount = property(lambda x: len(x)) |
|
|
|
createClass = None |
|
|
|
searchClass = None |
|
|
|
searchable = None |
|
|
|
|
|
|
|
def __init__(self, id, parentID, title, restricted = 0, creator = None): |
|
|
|
Object.__init__(self, id, parentID, title, restricted, creator) |
|
|
|
def __init__(self, cd, id, parentID, title, restricted = 0, creator = None): |
|
|
|
Object.__init__(self, cd, id, parentID, title, restricted, creator) |
|
|
|
list.__init__(self) |
|
|
|
|
|
|
|
def toElement(self): |
|
|
|
|
|
|
|