Package orm2 :: Package ui :: Package xist :: Module widgets :: Class password :: 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 --+
                                        |
                                       password.actual_widget

Instance Methods [hide private]
  extra_pw_name(self)
  widget(self, **kw)
Returns a xist frag that represents the HTML to create the widget.
  get_from_request(self, use_default=False)
Gets the value of both password fields from the request.
  set_from_request(self, use_default=False, ignore_if_unset=True)
A default value will never be used.

Inherited from utext.actual_widget: value

Inherited from text.actual_widget: __init__

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


Class Variables [hide private]
  type = 'password'

Method Details [hide private]

extra_pw_name(self)

source code 
None

widget(self, **kw)

source code 
Returns a xist frag that represents the HTML to create the widget. Ideally this is a single HTML element. The key word arguments will be passed as attributes, overwriting the constructor's key word arguments (see above).
Overrides: _input.actual_widget.widget

get_from_request(self, use_default=False)

source code 
Gets the value of both password fields from the request. Returns None if they are not set or if the passwords don't match. This must be cought in the dbobj's validator!
Overrides: utext.actual_widget.get_from_request

set_from_request(self, use_default=False, ignore_if_unset=True)

source code 
A default value will never be used. A password will always be ignored it not set. This also means, empty passwords are impossible.
Overrides: xist_widget.actual_widget.set_from_request

Class Variable Details [hide private]

type

None
Value:
'password'