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

Class mapping_radiobuttons

source code

 widget --+    
xist_widget --+

Nested Classes [hide private]

Instance Methods [hide private]
  __init__(self, mapping, sort=False, div=True, **kw)
  __call__(self, dbobj, **kw)

Inherited from xist_widget: belongs_to

Inherited from widget: __cmp__, __init_dbproperty__

Method Details [hide private]

__init__(self, mapping, sort=False, div=True, **kw)

source code 
  • mapping - A list of pairs as ( 'identifyer', u'title', ) that will be used to create the widget.
  • sort - Boolean value that determins if the mapping will be sorted by its title component before any HTML is created from it.
  • div - Add a <div> around a <input>/<label> pair to position the radio buttons vertically. Defaults to True.
Overrides: widget.__init__

__call__(self, dbobj, **kw)
(Call operator)

source code 
Overrides: widget.__call__