#
#
#
#
#
#
#
#
#
#
#
#
#
#
################################### BROWSER DECLARATION
#
################################### INTERFACES
class ITagGroup(IContainer):
"""Implements a groupish/tagish kinda collector object"""
isdefault = Bool()
intids = List()
title = TextLine(
title=u"Tag Name",
description=u"Name of Tag/Group",
default=u"",
required=True
)
def containedObjects():
"""does what it says on the box"""
def setIntids():
"""does what it says on the box"""
def getIntids():
"""does what it says on the box"""
class IPortalRootGroupFolder(IContainer):
"""This is a singleton for containing the app's lovely tagging engines"""
def containedObjects():
"""does what it says on the box"""
##################################### CONTENT IMPLEMENTATION
class TagGroup(Folder):
implements(ITagGroup)
title = u""
isdefault = False
intids = [ ]
def containedObjects(self):
return [item for item in self.intids]
def setIntids(self, set):
[self.intids.append(item) for item in set]
def getIntids(self):
return [item for item in self.intids]