If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    mrfreeze  15 years ago
    You would just need to make a list of months and change this line: month = SELECT([OPTION(datetime.date(2008,i,1).strftime('%B'),_value=i) for i in range(1,13)],value=m,_id=dt['_id']+'_month') to this mymonths = [...] month = SELECT([OPTION(mymonths[i],_value=i) for i in range(1,13)],value=m,_id=dt['_id']+'_month')

Commented on:

Here is another widget that uses three selects to allow the user to pick a date.

Hosting graciously provided by:
Python Anywhere