Użytkownik Adrian Klaver napisał:
>>>     I don't believe that there is any way to type "null". Instead, I would
>>> bind a keystroke (say, Control-0) to a method that sets the control's
>>> Value to None.
>>>        
>> I have another suggestion Ed.
>> You may add to dTextBoxMixin, attribute AllowNullDates
>> and instead raising ValueError exception, allow null dates.
>>      
> It does allow Null dates, you just can't enter them by hand.
>    

For empty string date, convertStringValueToDataType() method return Null 
value,
but in such situation ValueError exception is raised.
My proposal changes this behaviour so it would be possible.
For e.g., instead code:
     if retVal is None:
there should be:
     if retVal is None and not self.AllowNullDates:

-- 
Regards
Jacek Kałucki

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to