Home | Trees | Index | Help |
---|
Package twisted :: Package web :: Package woven :: Module controller :: Class Controller |
|
Collection
--+ |Constrained
--+ |ConfigCollection
--+ |Resource
--+ | Controller
LiveController
,
InputHandler
,
Page
,
DOMController
A Controller which handles to events from the user. Such events are `web request', `form submit', etc.
I should be the IResource implementor for your Models (andregisterControllerForModel
makes this
so).
Method Summary | |
---|---|
__init__(self,
m,
inputhandlers,
view,
controllers,
templateDirectory)
| |
aggregateInvalid(self,
request,
input,
data)
| |
aggregateValid(self,
request,
input,
data)
| |
Remove a static reference for 'name'. (inherited from Resource )
| |
domChanged(self,
request,
node)
| |
A method that determines whether an entity may be added to me. (inherited from ConfigCollection )
| |
gatheredControllers(self,
v,
d,
request)
| |
Look for a factory method to create the object to handle the next segment of the URL. | |
(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 )
| |
getEntityType(self)
(inherited from ConfigCollection )
| |
getNameType(self)
(inherited from ConfigCollection )
| |
Get an entity that was added to me using putEntity. (inherited from Resource )
| |
getSubcontroller(self,
request,
node,
model,
controllerName)
| |
By default, we don't do anything | |
importControllerLibrary(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 )
| |
makeView(self,
model,
name,
parentCount)
| |
A method that determines whether an entity may be added to me with a given name. (inherited from Constrained )
| |
Override this to recieve notification when the view rendering process is complete. | |
process(self,
request,
**kwargs)
| |
Register a child with me. (inherited from Resource )
| |
Store an entity if it meets both constraints. (inherited from Constrained )
| |
reallyPutEntity(self,
name,
entity)
(inherited from Resource )
| |
Remove an entity for 'name', based on the content of 'request'. (inherited from Collection )
| |
Trigger any inputhandlers that were passed in to this Page, then delegate to the View for traversing the DOM. | |
renderView(self,
request)
| |
setSubcontrollerFactory(self,
name,
factory,
setup)
| |
setSubmodel(self,
submodel)
| |
| |
setupControllerStack(self)
| |
setView(self,
view)
| |
Store an entity for 'name', based on the content of 'request'. (inherited from Collection )
|
Class Variable Summary | |
---|---|
tuple |
__implements__
|
list |
controllerLibraries
|
int |
setupStacks
|
string |
templateDirectory
|
None |
viewFactory
|
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. |
handle(self, request)By default, we don't do anything |
pageRenderComplete(self, request)Override this to recieve notification when the view rendering process is complete. |
render(self, request)Trigger any inputhandlers that were passed in to this Page, then delegate to the View for traversing the DOM. Finally, call gatheredControllers to deal with any InputHandlers that were constructed from any controller= tags in the DOM. gatheredControllers will render the page to the browser when it is done. |
setUp(self, request, *args)
|
Class Variable Details |
---|
__implements__
|
controllerLibraries
|
setupStacks
|
templateDirectory
|
viewFactory
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sat Feb 15 21:18:17 2003 | http://epydoc.sf.net |