Am 16.11.2014 12:52, schrieb Sibylle Koczian:
That works as expected if the filter expression is a string (or unicode)
and the database column is any kind of text. It works, also, if I filter
a date column for dates before / after a fixed day. I don't yet trust
this filter method for numbers, wouldn't it compare them as strings,
with wrong results? As far as I can see ustr() converts numbers to
unicode, or doesn't it? I'll try it out, but I'll probably need some
days to write a reasonable test application.


I'm afraid that isn't even necessary:

sib@gespenst-lubuntu:~$ python
Python 2.7.8 (default, Oct 20 2014, 15:05:29)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from dabo.lib.utils import ustr
>>> ustr(13) < ustr(2)
True
>>>

Greetings,
Sibylle

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.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