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

Class S3DateWidget

source code

??-305 --+
         |
        S3DateWidget

Standard Date widget

Instance Methods
 
__init__(self, format=None, past=None, future=None, start_field=None, default_interval=None, default_explicit=False)
Constructor
source code
 
__call__(self, field, value, **attributes)
Widget builder
source code
Method Details

__init__(self, format=None, past=None, future=None, start_field=None, default_interval=None, default_explicit=False)
(Constructor)

source code 

Constructor

Parameters:
  • format - format of date
  • past - how many months into the past the date can be set to
  • future - how many months into the future the date can be set to
  • start_field - "selector" for start date field
  • default_interval - x months from start date
  • default_explicit - bool for explicit default

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

source code 

Widget builder

Parameters:
  • field - the Field
  • value - the current value
  • attributes - the HTML attributes for the widget