Toolbar viewlet API.
request
(Attribute)
The request
The request is a surrogate for the user. It also provides the presentation type and skin. It is of type IPresentationRequest.
manager
(Attribute)
The Viewlet Manager
The viewlet manager for which the viewlet is registered. The viewlet manager will contain any additional data that was provided by the view, for example the TAL namespace attributes.
context
(Attribute)
The context of the object
This is the object being adapted, viewed, extended, etc.
__parent__
(Attribute)
The view the provider appears in.
The view is the third discriminator of the content provider. It allows that the content can be controlled for different views.
Having it stored as the parent is also very important for the security context to be kept.
* = required
update()
Initialize the content provider.
This method should perform all state calculation and not refer it to the rendering stage.
In this method, all state must be calculated from the current interaction (e.g., the browser request); all contained or managed content providers must have update() be called as well; any additional stateful API for contained or managed content providers must be handled; and persistent objects should be modified, if the provider is going to do it.
Do not store state about persistent objects: the rendering process should actually use the persistent objects for the data, in case other components modify the object between the update and render stages.
This method must be called before any other method that mutates the instance (besides the class constructor). Non-mutating methods and attributes may raise an error if used before update() is called. The view may rely on this order but is not required to explicitly enforce this. Implementations may enforce it as a developer aid.
render(*args, **kw)
Return the content provided by this content provider.
Calling this method before update() may (but is not required to) raise an UpdateNotCalled error.
There are no specific adapters registered for this interface.
zope.viewlet.viewlet.SimpleViewletClass from /opt/zope/sr/apidoc/src/zope/app/boston/viewlets/addinginfo/viewlet.pt
(name: addinginfo)
zope.viewlet.metaconfigure.JavaScriptViewlet
(name: boston.js)
zope.viewlet.metaconfigure.JavaScriptViewlet
(name: boston.js)
zope.viewlet.manager.<ViewletManager providing IJavaScript>
(name: zope.app.boston.IJavaScript)
zope.viewlet.manager.<ViewletManager providing IJavaScript>
(name: zope.app.boston.IJavaScript)
zope.viewlet.viewlet.SimpleViewletClass from /opt/zope/sr/apidoc/src/zope/app/boston/viewlets/toolbar/viewlet.pt
(name: toolbar)
zope.viewlet.viewlet.SimpleViewletClass from /opt/zope/sr/apidoc/src/zope/app/boston/viewlets/toolbar/viewlet.pt
(name: toolbar)
zope.viewlet.manager.<ViewletManager providing ICSS>
(name: zope.app.boston.ICSS)
zope.viewlet.manager.<ViewletManager providing ICSS>
(name: zope.app.boston.ICSS)
zope.viewlet.metaconfigure.CSSViewlet
(name: xmltree.css)
zope.viewlet.metaconfigure.CSSViewlet
(name: xmltree.css)
zope.viewlet.viewlet.SimpleViewletClass from /opt/zope/sr/apidoc/src/zope/app/boston/viewlets/xmltree/xmltree.pt
(name: xmltree)
zope.viewlet.viewlet.SimpleViewletClass from /opt/zope/sr/apidoc/src/zope/app/boston/viewlets/xmltree/xmltree.pt
(name: xmltree)
zope.viewlet.metaconfigure.CSSViewlet
(name: skin.css)
zope.viewlet.metaconfigure.CSSViewlet
(name: skin.css)
zope.viewlet.manager.<ViewletManager providing IHead>
(name: zope.app.boston.IHead)
zope.viewlet.manager.<ViewletManager providing IHead>
(name: zope.app.boston.IHead)
zope.viewlet.manager.<ViewletManager providing ILeft>
(name: zope.app.boston.ILeft)
zope.viewlet.manager.<ViewletManager providing ILeft>
(name: zope.app.boston.ILeft)
zope.viewlet.metaconfigure.JavaScriptViewlet
(name: xmltree)
zope.viewlet.metaconfigure.JavaScriptViewlet
(name: xmltree)
zope.viewlet.metaconfigure.CSSViewlet
(name: toolbar-css)
zope.viewlet.metaconfigure.CSSViewlet
(name: toolbar-css)
zope.viewlet.manager.<ViewletManager providing IToolBar>
(name: zope.app.boston.IToolBar)
zope.viewlet.manager.<ViewletManager providing IToolBar>
(name: zope.app.boston.IToolBar)
zope.viewlet.metaconfigure.CSSViewlet
(name: widget.css)
zope.viewlet.metaconfigure.CSSViewlet
(name: widget.css)
There are no views available.