[qmtest] Is there a reason why BooleanField does not return boolean objects?
Stefan Seefeld
stefan at codesourcery.com
Tue Apr 22 10:35:19 UTC 2008
Mohamed Barwani wrote:
> class BooleanField(EnumerationField):
> """A field containing a boolean value.
>
> The enumeration contains two values: true and false."""
>
> def __init__(self, name = "", default_value = None, **properties):
>
> # Construct the base class.
> EnumerationField.__init__(self, name, default_value,
> ["true", "false"], **properties)
> ^^____^^ both are strings not
> bolean objects. Why?
That's a good question. I believe this is because QMTest used to be much
more GUI-centric than it is today, and there isn't a very robust
separation between 'Model' and 'View' in QMTest.
Regards,
Stefan
--
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
More information about the qmtest
mailing list