The base class for all Collection types.
Collections are items and provide an API for client to subscribe to
their notifications.
The general usage paradigm for collections is to instantiate a
collection and then set the values of attributes as necessary (instead of
during construction)
| Method Summary |
| |
__contains__(self,
item)
|
| |
__iter__(self)
(deprecated) Use iterChildren instead. |
| |
__nonzero__(self)
|
| |
__str__(self)
for debugging |
| |
collectionChanged(self,
op,
item,
name,
other,
*args)
The method called by the repository level set that backs a
collection. |
| |
contentsUpdated(self,
item)
Callback for handling changes found by
mapChangesCallable |
| |
isEmpty(self)
Return True if the collection has no members |
| |
isReadOnly(self)
Return True iff participating in only read-only shares |
| |
notifySubscribers(self,
op,
item,
name,
other,
*args)
Deliver notifications to all subscribers |
| |
setup(self)
setup the color of a collection |
Inherited from ContentItem:
__init__,
__unicode__,
addToCollection,
ExportItemData,
getBasedAttributes,
getCurrentMeEmailAddress,
getEmailAddress,
getMembershipItem,
getSharedState,
InitOutgoingAttributes,
isAttributeModifiable,
ItemAboutString,
ItemBodyString,
ItemWhoFromString,
ItemWhoString,
removeFromCollection,
SetItemBodyString,
StampKind
Inherited from Item:
getDefaultParent,
getKind,
iterItems
Inherited from Item:
__getitem__,
_repr_,
addValue,
check,
clone,
copy,
delete,
dir,
find,
findMatch,
findPath,
findUUID,
getACL,
getAttributeValue,
getItemChild,
getItemCloud,
getItemDisplayName,
getItemDisplayString,
getValue,
getVersion,
hasAttributeAspect,
hasChild,
hasChildren,
hashItem,
hasKey,
hasLocalAttributeValue,
hasValue,
isAttributeDirty,
isItemOf,
isRemote,
iterAttributeValues,
iterChildren,
mixinKinds,
move,
placeChild,
printItem,
refCount,
removeACL,
removeAttributeValue,
removeValue,
rename,
setACL,
setAttributeValue,
setPinned,
setValue,
unwatchCollection,
unwatchKind,
walk,
watchCollection,
watchKind
Inherited from CItem:
__new__,
__repr__,
getAttributeAspect,
getDirty,
isDeleted,
isDeleting,
isDirty,
isNew,
isPinned,
isSchema,
isStale,
setDirty
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__reduce__,
__reduce_ex__,
__setattr__
|
| Instance Variable Summary |
| |
about: Role(None) |
| |
collectionList: Sequence(AbstractCollection) |
| |
color: One(ColorType) |
| |
colorizeIcon: One(Boolean) |
| |
displayNameAlternatives: Mapping(Text) |
| |
dontDisplayAsCalendar: One(Boolean) |
| |
iconName: One(Bytes) |
| |
iconNameHasKindVariant: One(Boolean) |
| |
invitees: Sequence(EmailAddress) |
| |
outOfTheBoxCollection: One(Boolean) |
| |
renameable: One(Boolean) |
| |
rep: One(AbstractSet) |
| |
subscribers: Many(None) |
Inherited from ContentItem:
body,
contentsOwner,
createdOn,
creator,
importance,
lastModified,
lastModifiedBy,
mine,
modifiedOn,
previousStamps,
private,
read,
sharedIn,
shares,
TPBDetailItemOwner,
TPBSelectedItemOwner,
viewContainer
Inherited from Item:
collections,
description,
displayName,
kindExtent,
monitors,
references,
watcherDispatch,
watchers,
watches
Inherited from Item:
aliasedBy,
path,
typeFor,
version
Inherited from CItem:
itsKind,
itsName,
itsParent,
itsPath,
itsRoot,
itsUUID,
itsVersion,
itsView
|