Class n.c.WebContext(object):

Part of nevow.context View Source View In Hierarchy

Known subclasses: nevow.context.FactoryContext, nevow.context.WovenContext

No class docstring
Line # Kind Name Docs
37 Method with Undocumented
41 Method arg Placeholder until I can find Jerub's implementation of this
49 Method __init__ Undocumented
57 Method remember Remember an object that implements some interfaces.
78 Method locate Locate an object which implements a given interface.
120 Method chain For nevow machinery use only.
139 Method fillSlots Set 'stan' as the stan tree to replace all slots with name 'name'.
146 Method locateSlotData For use by nevow machinery only, or for some fancy cases.
161 Method clone Undocumented
193 Method __conform__ Support IFoo(ctx) syntax.
201 Method __repr__ Undocumented
def with(self, tag): (source)
Undocumented
def arg(self, get, default=None): (source)

Placeholder until I can find Jerub's implementation of this

Return a single named argument from the request arguments
def __init__(self, parent=None, tag=None, remembrances=None): (source)
Undocumented
def remember(self, adapter, interface=None): (source)

Remember an object that implements some interfaces. Later, calls to .locate which are passed an interface implemented by this object will return this object.

If the 'interface' argument is supplied, this object will only be remembered for this interface, and not any of the other interfaces it implements.
def locate(self, interface, depth=1, _default=object()): (source)
Locate an object which implements a given interface. Objects will be searched through the context stack top down.
def chain(self, context): (source)

For nevow machinery use only.

Go to the top of this context's context chain, and make the given context the parent, thus continuing the chain into the given context's chain.
def fillSlots(self, name, stan): (source)
Set 'stan' as the stan tree to replace all slots with name 'name'.
def locateSlotData(self, name): (source)

For use by nevow machinery only, or for some fancy cases.

Find previously remembered slot filler data. For use by flatstan.SlotRenderer
def clone(self, deep=True, cloneTags=True): (source)
Undocumented
def __conform__(self, interface): (source)
Support IFoo(ctx) syntax.
def __repr__(self): (source)
Undocumented
API Documentation for Nevow, generated by pydoctor.