t.w.w.p.Page(model.MethodModel, controller.Controller, view.View) : class documentation

Part of twisted.web.woven.page View Source View In Hierarchy

Known subclasses: twisted.web.distrib.UserDirectory, twisted.web.woven.dirlist.DirectoryLister

Class VariablesappRootSet this to True if you want me to call request.rememberRootURL() in my getChild, so you can later use request.getRootURL() to get the URL to this "application"'s root resource. (You don't have to worry if there will be multiple instances of this Page involved in a single request; I'll only call it for the upper-most instance).
Method __init__ Initialize.
Method getChild No summary
Method renderView Undocumented

Inherited from MethodModel:

Method submodelCheck Allow any submodel for which I have a submodel.
Method submodelFactory Call a wmfactory_name method on this model.
Method getSubmodel Get the submodel `name' of this model. If I ever return a Deferred, then I ought to check for cached values (created by setSubmodel) before doing a regular Deferred lookup.

Inherited from Model (via MethodModel):

Method __getstate__ Undocumented
Method invalidateCache Invalidate the cache for this object, so the next time getData is called, it's getter method is called again.
Method initialize Hook for subclasses to initialize themselves without having to mess with the __init__ chain.
Method addView Add a view for the model to keep track of.
Method addSubview Undocumented
Method removeView Remove a view that the model no longer should keep track of.
Method setGetter Undocumented
Method setSetter Undocumented
Method notify No summary
Method lookupSubmodel Look up a full submodel name. I will split on `/' and call getSubmodel on each element in the 'path'.
Method setSubmodel No summary
Method dataWillChange Undocumented
Method getData Return the raw data contained by this Model object, if it is a wrapper. If not, return self.
Method setData No summary

Inherited from Controller:

Method setupControllerStack Undocumented
Method importControllerLibrary No summary
Method getSubcontroller Look for a controller named "controllerName" to handle the node "node". When a node <div controller="foo" /> is present in the template, this method will be called with controllerName set to "foo".
Method setSubcontrollerFactory Set the callable "factory", which takes a model and should return an InputHandler, to be called by the default implementation of getSubview when the controllerName "name" is present in the template.
Method setView Set the view that this controller is related to.
Method setNode Undocumented
Method setUp
Method getDynamicChild No summary
Method wchild_index By default, we return ourself as the index. Override this to provide different behavior for a URL that ends in a slash.
Method render No summary
Method makeView Undocumented
Method gatheredControllers Undocumented
Method aggregateValid Undocumented
Method aggregateInvalid Undocumented
Method process Undocumented
Method setSubmodel Undocumented
Method handle By default, we don't do anything
Method exit We are done handling the node to which this controller was attached.
Method domChanged Undocumented
Method pageRenderComplete Override this to recieve notification when the view rendering process is complete.

Inherited from Resource (via Controller):

Method listStaticNames Undocumented
Method listStaticEntities Undocumented
Method listNames Undocumented
Method listEntities Undocumented
Method listDynamicNames Undocumented
Method listDynamicEntities Undocumented
Method getStaticEntity Undocumented
Method getDynamicEntity Undocumented
Method delEntity Undocumented
Method reallyPutEntity Undocumented
Method getChildWithDefault Retrieve a static or dynamically generated child resource from me.
Method getChildForRequest Undocumented
Method putChild Register a static child.
Method render_HEAD Default handling of HEAD method.

Inherited from View:

Method getChildWithDefault No summary
Method setupAllStacks Undocumented
Method setUp Undocumented
Method setupViewStack Undocumented
Method importViewLibrary No summary
Method render No summary
Method getTemplate Override this if you want to have your subclass look up its template using a different method.
Method lookupTemplate No summary
Method handleDocument Handle the root node, and send the page if there are no outstanding callbacks when it returns.
Method handleOutstanding Undocumented
Method recurseChildren If this node has children, handle them.
Method dispatchResult Check a given result from handling a node and look up a NodeMutator adapter which will convert the result into a node and insert it into the DOM tree. Return the new node.
Method modelChanged Rerender this view, because our model has changed.
Method generate Allow a view to be used like a widget. Will look up the template file and return it in place of the incoming node.
Method setController Set the controller that this view is related to.
Method setNode Undocumented
Method setSubmodel Undocumented
Method getNodeModel Get the model object associated with this node. If this node has a model= attribute, call getSubmodel on the current model object. If not, return the top of the model stack.
Method getNodeController Get a controller object to handle this node. If the node has no controller= attribute, first check to see if there is an IController adapter for our model.
Method getSubview Get a sub-view from me.
Method getNodeView Undocumented
Method handleNode Undocumented
Method handleControllerResults Handle a deferred from a controller.
Method handleNewNode Undocumented
Method sendPage Check to see if handlers recorded any errors before sending the page
Method setSubviewFactory Set the callable "factory", which takes a model and should return a Widget, to be called by the default implementation of getSubview when the viewName "name" is present in the template.
Method __setitem__ Undocumented
Method unlinkViews Undocumented
Method dispatchResultCallback Deal with a callback from a deferred, checking to see if it is ok to send the page yet or not.
Method renderFailure Undocumented
def __init__(self, *args, **kwargs): (source)
Initialize.
def getChild(self, name, request): (source)
Look for a factory method to create the object to handle the next segment of the URL. If a wchild_* method is found, it will be called to produce the Resource object to handle the next segment of the path. If a wchild_* method is not found, getDynamicChild will be called with the name and request.
ParametersnameThe name of the child being requested. (type: string )
requestThe HTTP request being handled. (type: twisted.web.server.Request )
def renderView(self, request): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.