Package s3 :: Module s3widgets :: Class S3LocationDropdownWidget
[frames] | no frames]

Class S3LocationDropdownWidget

source code

??-272 --+
         |
        S3LocationDropdownWidget

Renders a dropdown for an Lx level of location hierarchy

Instance Methods
 
__init__(self, level="L0", default=None, validate=False, empty=DEFAULT, blank=False)
Constructor
source code
 
__call__(self, field, value, **attributes) source code
Method Details

__init__(self, level="L0", default=None, validate=False, empty=DEFAULT, blank=False)
(Constructor)

source code 

Constructor

Parameters:
  • level - the Lx-level (as string)
  • default - the default location name
  • validate - validate input in-widget (special purpose)
  • empty - allow selection to be empty
  • blank - start without options (e.g. when options are Ajax-added later by filterOptionsS3)

__call__(self, field, value, **attributes)
(Call operator)

source code