Home | Trees | Index | Help |
---|
Package twisted :: Package web :: Package woven :: Module view :: Class View |
|
Collection
--+ |Constrained
--+ |ConfigCollection
--+ |Resource
--+ |DOMTemplate
--+ | View
Widget
,
ThankYou
,
LiveView
,
Page
,
MyView
,
LLView
,
VNotifyTest
,
VDemo
,
VIdentityList
Method Summary | |
---|---|
A view must be told what its model is, and may be told what its controller is, but can also look up its controller if none specified. | |
__setitem__(self,
key,
value)
| |
Remove a static reference for 'name'. (inherited from Resource )
| |
Check a given result from handling a node and hand it to a process* method which will convert the result into a node and insert it into the DOM tree. (inherited from DOMTemplate )
| |
Deal with a callback from a deferred, dispatching the result and recursing children. (inherited from DOMTemplate )
| |
A method that determines whether an entity may be added to me. (inherited from ConfigCollection )
| |
Allow a view to be used like a widget. | |
Retrieve a 'child' resource from me. (inherited from Resource )
| |
(internal) Get a child of mine dependant on a particular request. (inherited from Resource )
| |
(internal) Retrieve a static or dynamically generated child resource from me. (inherited from Resource )
| |
Subclass this to generate an entity on demand. (inherited from Resource )
| |
Retrieve an entity from me. (inherited from Collection )
| |
(inherited from ConfigCollection )
| |
(inherited from ConfigCollection )
| |
Get a controller object to handle this node. | |
Get the model object associated with this node. | |
getNodeView(self,
request,
node,
submodel,
model)
| |
Get an entity that was added to me using putEntity. (inherited from Resource )
| |
Get a sub-view from me. | |
Override this if you want to have your subclass look up its template using a different method. (inherited from DOMTemplate )
| |
handleControllerResults(self,
controllerResult,
request,
node,
controller,
view,
success)
| |
Handle the root node, and send the page if there are no outstanding callbacks when it returns. (inherited from DOMTemplate )
| |
handleModel(self,
model,
request,
node,
submodelName)
| |
handleModelLater(self,
model,
request,
node,
submodelName)
| |
handleNewNode(self,
request,
returnNode)
| |
Handle a single node by looking up a method for it, calling the method and dispatching the result. | |
importViewLibrary(self,
namespace)
| |
A list of all name, entity that I can generate on demand. (inherited from Resource )
| |
Retrieve a list of the names of entities that I store references to. (inherited from Resource )
| |
Retrieve a list of all name, entity pairs that I store references to. (inherited from Resource )
| |
Retrieve a list of the names of entities that I store references to. (inherited from Resource )
| |
Retrieve a list of all name, entity pairs that I store references to. (inherited from Resource )
| |
Retrieve a list of the names of entities that I store references to. (inherited from Resource )
| |
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. (inherited from DOMTemplate )
| |
Dispatch changed messages to any update_* methods which may have been defined, then pass the update notification on to the controller. | |
A method that determines whether an entity may be added to me with a given name. (inherited from Constrained )
| |
Register a child with me. (inherited from Resource )
| |
Store an entity if it meets both constraints. (inherited from Constrained )
| |
(inherited from Resource )
| |
If this node has children, handle them. (inherited from DOMTemplate )
| |
Remove an entity for 'name', based on the content of 'request'. (inherited from Collection )
| |
Render a given resource. | |
(inherited from DOMTemplate )
| |
Check to see if handlers recorded any errors before sending the page | |
setController(self,
controller)
| |
setNode(self,
node)
| |
setSubmodel(self,
name)
| |
setSubviewFactory(self,
name,
factory,
setup,
*args,
**kwargs)
| |
(inherited from DOMTemplate )
| |
setupViewStack(self)
| |
Store an entity for 'name', based on the content of 'request'. (inherited from Collection )
| |
unlinkViews(self)
|
Class Variable Summary | |
---|---|
tuple |
__implements__
|
int |
setupStacks
|
list |
viewLibraries
|
int |
wantsAllNotifications
|
Method Details |
---|
__init__(self,
m,
templateFile=None,
controller=None,
doneCallback=None,
modelStack=None,
viewStack=None,
controllerStack=None)
A view must be told what its model is, and may be told what its
controller is, but can also look up its controller if none
specified.
|
generate(self, request, node)Allow a view to be used like a widget. Will look up the template file and return it in place of the incoming node. |
getNodeController(self, request, node, submodel, model)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. |
getNodeModel(self, request, node, submodel)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. |
getSubview(self, request, node, model, viewName)Get a sub-view from me.
|
handleNode(self, request, node)Handle a single node by looking up a method for it, calling the method and dispatching the result. Also, handle all childNodes of this node using recursion.
|
modelChanged(self, changed)Dispatch changed messages to any update_* methods which may have been defined, then pass the update notification on to the controller. |
render(self, request, doneCallback=None)Render a given resource. This must be implemented in all subclasses of Resource. The return value of this method will be the rendered page, unless the return value is twisted.web.server.NOT_DONE_YET, in which case it is this class's responsibility to write the results to request.write(data), then call request.finish().
|
sendPage(self, request)Check to see if handlers recorded any errors before sending the page |
Class Variable Details |
---|
setupStacks
|
viewLibraries
|
wantsAllNotifications
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:29:23 2003 | http://epydoc.sf.net |