-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

thanks lukasz,

i thought the format and validator should both have the same default
format, but it's ok to pass it explicitly too.

it may also be nice to set a default format based on the user locale.

thanks again,
alex

Lukasz Szybalski wrote:
> Are you using something like this for your widget definition? You
> would just have to modify it to support datetime. I prefer to separate
> the date and time into two seperate fields but here is something that
> might be useful to you.
> 
> DOB = widgets.CalendarDatePicker(format = '%Y/%m/%d',validator =
> validators.DateTimeConverter(format="%Y/%m/%d"))
> 
> Lucas
> 
> On Jan 14, 2008 9:37 PM, alex bodnaru <[EMAIL PROTECTED]> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>> hi friends,
>>
>> should i do anything special in order to prepare a date/datetime field
>> for editing?
>>
>> if i just commit such a form, i'm constantly getting "Invalid datetime
>> format" exception.
>>
>> tia,
> 
> > 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBR4xb1dpwN1sq38njAQJG+wQAkUGBgIMK/B8a2h90j9OaDroEs2mt785Q
TpZbA0eK2y+pwoD1SMQcxvx4+k5DVyStwaWrGtk270POetH6YVCtIbcXUPOkRqpM
yj7lhP7JygvCQ/sMvXpLaA73gOSA3fEPmev6hfga/T63Sepk7N9p0eF8PVNK6v3K
D7HfhbvPO3k=
=CSHT
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to