Ohh you can still sort of do it a slightly different way
import datetime
month = T((a.replace(day=1) - datetime.timedelta(days=1)).strftime('%B'))
In your view you could use:
{{for m in [datetime.date(2000, m, 1).strftime('%B') for m in range(1,
13)]:}}
<option value='{{=m}}'>{{=m}}</option>
{{pass}}
Another alternative would be to use calendar.monthname.
As for running out of space for the colaboradores, why are you passing
their name, which isn't even unique instead of passing their id which is
much more compact. Im pretty sure you will have plenty of space using ids,
but if that still doesn't solve the problem change the links so instead of
them having an href they have an onclick that calls a javascript function
that posts the desired data or simply store the list in the session like
Massimo suggested.
Anyway if you would prefer for me to answer in Portuguese feel free to
email me.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.