Package orm2 :: Package ui :: Package xist :: Module widgets :: Class utext :: Class actual_widget
[hide private]
[frames] | no frames]

Class actual_widget

source code

 widget.actual_widget --+            
                        |            
xist_widget.actual_widget --+        
                            |        
         _input.actual_widget --+    
                                |    
               text.actual_widget --+
                                    |
                                   utext.actual_widget
Known Subclasses:
password.actual_widget

Instance Methods [hide private]
  value(self)
If the current request contains a value for our form element's name, return that value, otherwise get it from the dbobj.
  get_from_request(self, use_default=False)
Check the request for a parameter with this widget's name attribute.

Inherited from text.actual_widget: __init__

Inherited from _input.actual_widget: widget

Inherited from xist_widget.actual_widget: __getattr__, error_message, help, label, row, set_from_request


Class Variables [hide private]
  type = "text"

Method Details [hide private]

value(self)

source code 
If the current request contains a value for our form element's name, return that value, otherwise get it from the dbobj. If that should fail, return the default.
Overrides: text.actual_widget.value

get_from_request(self, use_default=False)

source code 
Check the request for a parameter with this widget's name attribute. It it is set return it as is. Otherwise return the default value (if use_default is True) or raise KeyError.
Overrides: text.actual_widget.get_from_request
(inherited documentation)

Class Variable Details [hide private]

type

None
Value:
"text"