Package gluon :: Module sqlhtml :: Class OptionsWidget
[hide private]
[frames] | no frames]

Class OptionsWidget

source code

object --+    
         |    
FormWidget --+
             |
            OptionsWidget
Known Subclasses:

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
widget(cls, field, value, **attributes)
generates a SELECT tag, including OPTIONs (only 1 option allowed)
source code

Inherited from FormWidget (private): _attributes

Static Methods [hide private]
 
has_options(field)
checks if the field has selectable options
source code
Class Variables [hide private]

Inherited from FormWidget (private): _class

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

has_options(field)
Static Method

source code 

checks if the field has selectable options

:param field: the field needing checking :returns: True if the field has options

widget(cls, field, value, **attributes)
Class Method

source code 

generates a SELECT tag, including OPTIONs (only 1 option allowed)

see also: :meth:`FormWidget.widget`

Overrides: FormWidget.widget