An interface for the write aspects of a container.
There are no attributes or fields specified.
__delitem__(name)
Delete the named object from the container.
Raises a KeyError if the object is not found.
If the deleted object's __parent__ and __name__ match the container and given name, then an IObjectRemovedEvent is generated and the attributes are set to None. If the object can be adapted to IObjectMovedEvent, then the adapter's moveNotify method is called with the event.
Unless the object's __parent__ and __name__ attributes were initially None, generate an IContainerModifiedEvent for the container.
If the object's __parent__ and __name__ were already set to None, then no events are generated. This allows advanced clients to take over event generation.
__setitem__(name, object)
Add the given object to the container under the given name.
Raises a TypeError if the key is not a unicode or ascii string. Raises a ValueError if key is empty.
The container might choose to add a different object than the one passed to this method.
If the object doesn't implement IContained, then one of two things must be done:
The object's __parent__ and __name__ attributes are set to the container and the given name.
If the old parent was None, then an IObjectAddedEvent is generated, otherwise, an IObjectMovedEvent is generated. An IContainerModifiedEvent is generated for the container.
If the object replaces another object, then the old object is deleted before the new object is added, unless the container vetos the replacement by raising an exception.
If the object's __parent__ and __name__ were already set to the container and the name, then no events are generated and no hooks. This allows advanced clients to take over event generation.
zope.viewlet.viewlet.SimpleViewletClass from /opt/zope/sr/apidoc/src/zope/app/boston/viewlets/addinginfo/viewlet.pt
(name: addinginfo)
There are no extended adapters registered for this interface.
zope.app.onlinehelp.onlinehelp.OnlineHelp
zope.copypastemove.ExampleContainer
zope.app.catalog.catalog.Catalog
zope.app.onlinehelp.onlinehelptopic.RESTOnlineHelpTopic
zope.app.pluggableauth.BTreePrincipalSource
zope.app.component.back35.RegistrationManager
zope.app.onlinehelp.onlinehelptopic.SourceTextOnlineHelpTopic
zope.app.container.sample.SampleContainer
zope.app.workflow.stateful.definition.StatesContainer
zope.app.onlinehelp.onlinehelptopic.ZPTOnlineHelpTopic
zope.app.onlinehelp.onlinehelptopic.BaseOnlineHelpTopic
zope.app.onlinehelp.onlinehelptopic.STXOnlineHelpTopic
zope.app.onlinehelp.onlinehelptopic.OnlineHelpTopic
zope.app.authentication.authentication.PluggableAuthentication
zope.app.workflow.definition.ProcessDefinitionElementContainer
zope.app.container.ordered.OrderedContainer
zope.app.apidoc.bookmodule.book.BookModule
zope.app.component.site.SiteManagementFolder
zope.app.workflow.stateful.definition.TransitionsContainer
zope.app.onlinehelp.onlinehelp.OnlineHelp
zope.app.workflow.instance.ProcessInstanceContainerAdapter
buddydemo.buddy.BuddyFolder
zope.app.container.btree.BTreeContainer
zope.app.pluggableauth.PluggableAuthentication
zope.app.authentication.groupfolder.GroupFolder
zope.app.folder.folder.Folder
zope.app.i18n.translationdomain.TranslationDomain
zope.app.component.site.LocalSiteManager
z3checkins.folder.CheckinFolder
zope.app.authentication.principalfolder.PrincipalFolder