| Home | Trees | Indices | Help |
|
|---|
|
|
??-304 --+
|
S3AgeWidget
Widget to accept and represent date of birth as age in years,
mapping the age to a pseudo date-of-birth internally so that
it progresses over time; contains both widget and representation
method
@example:
s3_date("date_of_birth",
label = T("Age"),
widget = S3AgeWidget.widget,
represent = lambda v: S3AgeWidget.date_as_age(v) if v else current.messages["NONE"],
...
)
| Class Methods | |||
|
|||
| Static Methods | |||
|
|||
|
|||
| Method Details |
The widget method, renders a simple integer-input
|
Convert a date value into age in years, can be used as representation method
|
Convert age in years into an approximate date of birth, acts as inner validator of the widget
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:50 2019 | http://epydoc.sourceforge.net |