I mix in the functionality of adding a Perspective to the request's session.
In order to retrieve the perspective, call self.getPerspective(request).
Methods
|
|
__init__
_cbPerspective
_ebPerspective
display
getPerspective
|
|
__init__
|
__init__ ( self, service )
Initialize me with a service.
This service is used to determine where the perspective that will be
attached to the session will come from. If an identity has multiple
perspectives with that service, the first one (in alphabetical order)
will be used.
|
|
_cbPerspective
|
_cbPerspective (
self,
resultPerspective,
request,
)
|
|
_ebPerspective
|
_ebPerspective (
self,
fail,
request,
)
|
|
display
|
display ( self, request )
See widgets.WidgetMixin.
|
|
getPerspective
|
getPerspective ( self, request )
Return a Perspective instance.
|
|