Re: [Zope-dev] Converters.field2date, allow empty string to return None?

2000-09-04 Thread Dieter Maurer
Brad Clements writes: One thing that has been bothering me is that I can't easily test my ZSQL Methods if they accept a date type unless I completely fill all the date arg types. For example, if the sqlmethod has argument type startdate:date='' and in the body I have

Re: [Zope-dev] Converters.field2date, allow empty string to return None?

2000-09-04 Thread Brad Clements
On 3 Sep 2000, at 13:33, Dieter Maurer wrote: One solution would be to use a valid (special) date as default value and test against it in the body. I don't like this "solution" because the end-user has to know what the special date is, it looks ugly on the form and it still does *not*

Re: [Zope-dev] Converters.field2date, allow empty string to return None?

2000-09-02 Thread Steve Alexander
Brad Clements wrote: One thing that has been bothering me is that I can't easily test my ZSQL Methods if they accept a date type unless I completely fill all the date arg types. For example, if the sqlmethod has argument type startdate:date='' and in the body I have dtml-if

[Zope-dev] Converters.field2date, allow empty string to return None?

2000-09-01 Thread Brad Clements
One thing that has been bothering me is that I can't easily test my ZSQL Methods if they accept a date type unless I completely fill all the date arg types. For example, if the sqlmethod has argument type startdate:date='' and in the body I have dtml-if startdate ... When i use the test