pyams_viewlet.interfaces package ⊞¶
PyAMS_viewlet.interfaces module
The module defines viewlet and viewlets manager interfaces.
-
interface
pyams_viewlet.interfaces.IViewlet[source]¶ Extends:
zope.contentprovider.interfaces.IContentProviderA content provider that is managed by another content provider, known as viewlet manager.
Note that you cannot call viewlets directly as a provider, i.e. through the TALES
providerexpression, since it always has to know its manager.-
manager¶ 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.
-
-
interface
pyams_viewlet.interfaces.IViewletManager[source]¶ Extends:
zope.contentprovider.interfaces.IContentProvider,zope.interface.common.mapping.IReadMappingA component that provides access to the content providers.
The viewlet manager’s responsibilities are:
- Aggregation of all viewlets registered for the manager.
- Apply a set of filters to determine the availability of the viewlets.
- Sort the viewlets based on some implemented policy.
- Provide an environment in which the viewlets are rendered.
- Render itself by rendering the HTML content of the viewlets.
-
filter(self, viewlets)¶ Filter manager viewlets
-
sort(self, viewlets)¶ Sort manager viewlets
-
reset(self)¶ Reset manager status; this can be required if the manager between renderings