Home | Trees | Index | Help |
|
---|
Package twisted :: Package web :: Package woven :: Module form :: Class FormFillerWidget |
|
View
--+ |Widget
--+ | FormFillerWidget
FormErrorWidget
Method Summary | |
---|---|
convergeInput(self,
request,
content,
model,
templateNode)
| |
createInput(self,
request,
shell,
model,
templateAttributes)
| |
Create a `shell' node that will hold the additional form elements, if one is required. | |
Return value for form input. | |
Return values for form input. | |
input_boolean(self,
request,
content,
model,
templateAttributes)
| |
input_checkgroup(self,
request,
content,
model,
templateAttributes)
| |
input_choice(self,
request,
content,
model,
templateAttributes)
| |
input_date(self,
request,
content,
model,
templateAttributes)
| |
input_file(self,
request,
content,
model,
templateAttributes)
| |
input_flags(self,
request,
content,
model,
templateAttributes)
| |
Returns a text input node built based upon the node model. | |
Base code for a group of objects. | |
input_hidden(self,
request,
content,
model,
templateAttributes)
| |
Returns a text input node built based upon the node model. | |
Returns a text input node built based upon the node model. | |
input_password(self,
request,
content,
model,
templateAttributes)
| |
input_radiogroup(self,
request,
content,
model,
templateAttributes)
| |
Returns a text input node built based upon the node model. | |
input_string(self,
request,
content,
model,
templateAttributes)
| |
input_submit(self,
request,
content,
model,
templateAttributes)
| |
input_text(self,
request,
content,
model,
templateAttributes)
| |
input_verifiedpassword(self,
request,
content,
model,
templateAttributes)
| |
Override this method to set up your Widget prior to generateDOM. | |
Inherited from Widget | |
| |
Convenience syntax for getting an attribute from the resultant DOM Node of this widget. | |
Convenience syntax for adding attributes to the resultant DOM Node of this widget. | |
| |
| |
Add `item' to the children of the resultant DOM Node of this widget. | |
Add an event handler to this widget. | |
Add a method to this widget that will be called when the widget is being rendered. | |
Add `item' to the children of the resultant DOM Node of this widget. | |
Do your part, prevent infinite recursion! | |
Allow a view to be used like a widget. | |
Return a DOM Node to replace the Node in the template that this Widget handles. | |
Get all nodes below this one which have a matching pattern attribute. | |
Convenience syntax for getting an attribute from the resultant DOM Node of this widget. | |
I have a model; however since I am a widget I am only responsible for a portion of that model. | |
Get a named slot from the incoming template node. | |
Get a reference to this page's top model object. | |
Use this method instead of __init__ to initialize your Widget, so you don't have to deal with calling the __init__ of the superclass. | |
Insert `item' at `index' in the children list of the resultant DOM Node of this widget. | |
| |
Dispatch a client-side event to an event handler that was registered using addEventHandler. | |
Convenience syntax for adding attributes to the resultant DOM Node of this widget. | |
If the return value of getData is a Deferred, I am called when the
result of the Deferred is available. | |
| |
Convenience method for allowing a Controller to report an error to the user. | |
Set a node for this widget to use instead of creating one programatically. | |
I use the submodel to know which attribute in self.model I am responsible for | |
Inherited from View | |
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. | |
Deal with a callback from a deferred, checking to see if it is ok to send the page yet or not. | |
| |
| |
Get a controller object to handle this node. | |
Get the model object associated with this node. | |
| |
Get a sub-view from me. | |
Override this if you want to have your subclass look up its template using a different method. | |
Handle a deferred from a controller. | |
Handle the root node, and send the page if there are no outstanding callbacks when it returns. | |
| |
| |
| |
| |
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. | |
If this node has children, handle them. | |
| |
| |
Check to see if handlers recorded any errors before sending the page | |
| |
| |
| |
| |
|
Instance Variable Summary | |
---|---|
Inherited from Widget | |
model : If the current model is an model.Model , then the result of
model.getData(). |
Class Variable Summary | |
---|---|
list |
SPANNING_TYPES = ['hidden', 'submit']
|
Inherited from Widget | |
int |
clearNode = 0 |
int |
livePage = 1 |
int |
setupStacks = 0 |
NoneType |
tagName : The tag name of the element that this widget creates. |
wantsAllNotifications : Indicate that this widget wants to recieve every change notification
from the main model, not just notifications that affect its model. | |
Inherited from View | |
tuple |
__implements__ = (<class twisted.web.resource.IResource ...
|
NoneType |
doneCallback = None |
int |
isLeaf = 1 |
str |
template = ''
|
str |
templateDirectory = ''
|
str |
templateFile = ''
|
NoneType |
templateNode = None |
list |
viewLibraries = []
|
Method Details |
---|
createShell(self, request, node, data)Create a `shell' node that will hold the additional form elements, if one is required. |
getValue(self, request, argument)Return value for form input. |
getValues(self, request, argument)Return values for form input. |
input_float(self, request, content, model, templateAttributes={})Returns a text input node built based upon the node model. Optionally takes an already-coded DOM node merges that information with the model's information. Returns a new (??) lmx node. |
input_group(self, request, content, model, groupValues, inputType, templateAttributes={})Base code for a group of objects. Checkgroup will use this, as well as radiogroup. In the attributes, rows means how many rows the group should be arranged into, cols means how many cols the group should be arranged into. Columns take precedence over rows: if both are specified, the output will always generate the correct number of columns. However, if the number of elements in the group exceed (or is smaller than) rows*cols, then the number of rows will be off. A cols attribute of 1 will mean that all the elements will be listed one underneath another. The default is a rows attribute of 1: everything listed next to each other. |
input_integer(self, request, content, model, templateAttributes={})Returns a text input node built based upon the node model. Optionally takes an already-coded DOM node merges that information with the model's information. Returns a new (??) lmx node. |
input_integerrange(self, request, content, model, templateAttributes={})Returns a text input node built based upon the node model. Optionally takes an already-coded DOM node merges that information with the model's information. Returns a new (??) lmx node. |
input_single(self, request, content, model, templateAttributes={})Returns a text input node built based upon the node model. Optionally takes an already-coded DOM node merges that information with the model's information. Returns a new (??) lmx node. |
setUp(self, request, node, data)Override this method to set up your Widget prior to generateDOM.
This is a good place to call methods like
|
Class Variable Details |
---|
SPANNING_TYPES
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:38 2004 | http://epydoc.sf.net |