twisted.web.guard.HTTPAuthSessionWrapper._loginSucceeded.ResourceWrapper(proxyForInterface(IResource, 'resource'))
class documentationtwisted.web.guard.HTTPAuthSessionWrapper._loginSucceeded
View Source
(View In Hierarchy)
Wrap an IResource
so that whenever it or a child of it completes rendering, the cred logout hook will be invoked.
An assumption is made here that exactly one IResource
from among avatar
and all of its children will be rendered. If more than one is rendered, logout
will be invoked multiple times and probably earlier than desired.
Method | getChildWithDefault | Pass through the lookup to the wrapped resource, wrapping the result in ResourceWrapper to ensure logout is called when rendering of the child is complete. |
Method | render | Hook into response generation so that when rendering has finished completely (with or without error), logout is called. |
Pass through the lookup to the wrapped resource, wrapping the result in ResourceWrapper
to ensure logout
is called when rendering of the child is complete.
Hook into response generation so that when rendering has finished completely (with or without error), logout
is called.