I am reverting this. sorry.

On Monday, 29 October 2012 10:09:35 UTC-5, Massimo Di Pierro wrote:
>
> This is what was talking about. I have fixed all the validators but think 
> may break third party custom validators.... this change is not backward 
> compatible.
>
> On Monday, 29 October 2012 07:04:05 UTC-5, Friedrich Weber wrote:
>>
>> Hi there!
>>
>> For me, this change breaks optional `date` fields. Until now, I had a 
>> field like this:
>>
>>     Field('somefield', type='date',
>>           label=T('...')),
>>
>>
>> The value could be NULL, in which case `None` was displayed in a 
>> `SQLFORM.grid`. Now, this code crashes with:
>>
>> AttributeError: 'NoneType' object has no attribute 'year'
>>
>>
>> in `gluon.validators.IS_DATE.formatter`.
>>
>> It isn't a problem for me to fix this in my code, but I'm not sure if 
>> this behaviour is desirable -- what do you think?
>>
>> Cheers!
>>
>> Friedrich
>>
>> On Sunday, October 28, 2012 6:01:16 PM UTC+1, Massimo Di Pierro wrote:
>>>
>>> OK. In trunk and let's see if anything breaks.
>>>
>>

-- 



Reply via email to