Package twisted :: Package web :: Package woven :: Module page :: Class LivePage |
[frames | no frames]

## Class LivePage

    Resource --+
               |
      Controller --+
                   |
      LiveController --+
                       |
            View --+   |
                   |   |
            LiveView --+
                       |
           Model --+   |
                   |   |
         MethodModel --+
                       |
                      LivePage

Method Summary
| `__init__(self, m, templateFile, inputhandlers, templateDirectory, controllers, *args, **kwargs)`
| ``getChild`(self, name, request)` Look for a factory method to create the object to handle the next segment of the URL.
| `renderView(self, request)`
Inherited from MethodModel
| ``getSubmodel`(self, request, name)` Get the submodel `name' of this model.
| ``submodelCheck`(self, request, name)` Allow any submodel for which I have a submodel.
| ``submodelFactory`(self, request, name)` Call a wmfactory_name method on this model.
Inherited from Model
| ``__getstate__`(self)`
| ``addSubview`(self, name, subview)`
| ``addView`(self, view)` Add a view for the model to keep track of.
| ``dataWillChange`(self)`
| ``getData`(self, request)`
| ``initialize`(self, *args, **kwargs)` Hook for subclasses to initialize themselves without having to mess with the __init__ chain.
| ``invalidateCache`(self)` Invalidate the cache for this object, so the next time getData is called, it's getter method is called again.
| ``lookupSubmodel`(self, request, submodelName)` Look up a full submodel name.
| ``notify`(self, changed)` Notify all views that something was changed on me.
| ``removeView`(self, view)` Remove a view that the model no longer should keep track of.
| ``setData`(self, request, data)`
| ``setGetter`(self, getter)`
| ``setSetter`(self, setter)`
| ``setSubmodel`(self, request, name, value)` Set a submodel on this model.
Inherited from LiveController
| ``clientToServerEvent`(self, request, eventName, eventTarget, eventArgs)` The client sent an asynchronous event to the server.
| ``domChanged`(self, request, widget, node)`
| ``gatheredControllers`(self, v, d, request)`
| ``render`(self, request)` First, check to see if this request is attempting to hook up the output conduit.
| ``wchild_FlashConduit_swf`(self, request)`
| ``wchild_input_html`(self, request)`
| ``wchild_WebConduit2_js`(self, request)`
Inherited from Controller
| ``aggregateInvalid`(self, request, input, data)`
| ``aggregateValid`(self, request, input, data)`
| ``exit`(self, request)` We are done handling the node to which this controller was attached.
| ``getDynamicChild`(self, name, request)` This method is called when getChild cannot find a matching wchild_* method in the Controller.
| ``getSubcontroller`(self, request, node, model, controllerName)`
| ``handle`(self, request)` By default, we don't do anything
| ``importControllerLibrary`(self, namespace)`
| ``makeView`(self, model, templateFile, parentCount)`
| ``pageRenderComplete`(self, request)` Override this to recieve notification when the view rendering process is complete.
| ``process`(self, request, **kwargs)`
| ``setNode`(self, node)`
| ``setSubcontrollerFactory`(self, name, factory, setup)`
| ``setUp`(self, request, *args)`
| ``setupControllerStack`(self)`
| ``setView`(self, view)`
| ``wchild_index`(self, request)` By default, we return ourself as the index.
Inherited from Resource
| ``delEntity`(self, name)`
| ``getChildForRequest`(self, request)`
| ``getChildWithDefault`(self, path, request)` Retrieve a static or dynamically generated child resource from me.
| ``getDynamicEntity`(self, name, request)`
| ``getStaticEntity`(self, name)`
| ``listDynamicEntities`(self, request)`
| ``listDynamicNames`(self)`
| ``listEntities`(self)`
| ``listNames`(self)`
| ``listStaticEntities`(self)`
| ``listStaticNames`(self)`
| ``putChild`(self, path, child)` Register a static child.
| ``reallyPutEntity`(self, name, entity)`
Inherited from LiveView
| ``wvfactory_webConduitGlue`(self, request, node, m)`
| ``wvupdate_woven_flashConduitSessionView`(self, request, wid, mod)`
Inherited from View
| ``__setitem__`(self, key, value)`
| ``dispatchResult`(self, request, node, result)` 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.
| ``dispatchResultCallback`(self, result, request, node)` Deal with a callback from a deferred, checking to see if it is ok to send the page yet or not.
| ``generate`(self, request, node)` Allow a view to be used like a widget.
| ``getNodeController`(self, request, node, submodel, model)` Get a controller object to handle this node.
| ``getNodeModel`(self, request, node, submodel)` Get the model object associated with this node.
| ``getNodeView`(self, request, node, submodel, model)`
| ``getSubview`(self, request, node, model, viewName)` Get a sub-view from me.
| ``getTemplate`(self, request)` Override this if you want to have your subclass look up its template using a different method.
| ``handleControllerResults`(self, controllerResult, request, node, controller, view)` Handle a deferred from a controller.
| ``handleDocument`(self, request, document)` Handle the root node, and send the page if there are no outstanding callbacks when it returns.
| ``handleNewNode`(self, request, returnNode)`
| ``handleNode`(self, request, node)`
| ``handleOutstanding`(self, request)`
| ``importViewLibrary`(self, namespace)`
| ``lookupTemplate`(self, request)` Use acquisition to look up the template named by self.templateFile, located anywhere above this object in the heirarchy, and use it as the template.
| ``modelChanged`(self, changed)` Rerender this view, because our model has changed.
| ``recurseChildren`(self, request, node)` If this node has children, handle them.
| ``renderFailure`(self, failure, request)`
| ``sendPage`(self, request)` Check to see if handlers recorded any errors before sending the page
| ``setController`(self, controller)`
| ``setSubviewFactory`(self, name, factory, setup, *args, **kwargs)`
| ``setupAllStacks`(self)`
| ``setupViewStack`(self)`
| ``unlinkViews`(self)`

Class Variable Summary
`tuple` | `__implements__` = `(<class twisted.web.woven.interfaces.IM...`
`int` | `appRoot` = 0
Inherited from Model
`list` | `allowed_names` = `[]`
`list` | `protected_names` = `['initialize', 'addView', 'addSubview'...`
Inherited from LiveController
`NoneType` | `pageSession` = None
Inherited from Controller
`int` | `addSlash` = 1
`list` | `controllerLibraries` = `[]`
`int` | `setupStacks` = 1
`str` | `templateDirectory` = `''`
`NoneType` | `viewFactory` = None
Inherited from Resource
`int` | `isLeaf` = 0
`NoneType` | `server` = None
Inherited from LiveView
`int` | `livePage` = 1
Inherited from View
`NoneType` | `doneCallback` = None
`str` | `template` = `''`
`str` | `templateFile` = `''`
`NoneType` | `templateNode` = None
`list` | `viewLibraries` = `[]`
`int` | `wantsAllNotifications` = 0

Method Details

### getChild(self, name, request) 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. Parameters: `name` - The name of the child being requested. (type=string) `request` - The HTTP request being handled. (type=`twisted.web.server.Request`) Overrides: `twisted.web.woven.controller.Controller.getChild` (inherited documentation)

Class Variable Details

    ### __implements__ Type: `tuple` Value:
        (<class twisted.web.woven.interfaces.IModel at 0x855802c>,
         (<class twisted.web.resource.IResource at 0x8436174>,
          <class twisted.web.woven.interfaces.IView at 0x854db54>),
         (<class twisted.web.woven.interfaces.IController at 0x85d3e4c>,
          <class twisted.web.resource.IResource at 0x8436174>))

    ### appRoot Type: `int` Value:
        0

Generated by Epydoc 2.0 on Sat Oct 25 00:54:46 2003 | http://epydoc.sf.net