Hi Alex,
Thanks for your commend.
In Reply To:
As for your change, we've been looking at something like that, but also would want to consider: is null, is not null, is empty, is not empty. And I'm sure some users will want empty to equal null. i.e. show me all records where a field is not empty/null. I haven't thought too much more about how best to incorporate this syntax wise.
If you would provide the basic options (something like '-null', '-notnull', '-empty', '-notempty'), everybody can write plugins where their own tags will be translated in the supported ones.
To give you an example, for date/time selection, GT only provides '-lt', '-le', '-gt' and '-ge', but in a form, you normally want to have three different combos for days, months and years, or one combo with a year, month combination could provide for and interval (a '-lt' and '-gt' combined). I have written a plugin (see
post 221914) that supports the following extra extensions:
- -last_date_exclusive
- -first_year
- -first_month
- -first_monthday
- -first_yearday
- -first_week
- -first_year_month
- -first_year_month_monthday
- -first_year_week
- -first_year_yearday
- -first_daysfromnow
- -last_year
- -last_month
- -last_monthday
- -last_yearday
- -last_week
- -last_year_month
- -last_year_month_monthday
- -last_year_week
- -last_year_yearday
- -last_daysfromnow
- -interval_years
- -interval_months
- -interval_weeks
- -interval_days
So my suggestion would be to just make sure everything is possible, so we can make it fancy using plugins. Please keep me posted on your decision, so I know how to modify my application accordingly.
Jasper
http://www.bookings.org