[Xesam] Relative date queries / Mono XESAM library

Gabriel Burt gabriel.burt at gmail.com
Tue Jan 15 07:59:41 PST 2008


On Jan 15, 2008 2:34 AM, Mikkel Kamstrup Erlandsen
<mikkel.kamstrup at gmail.com> wrote:
> It was very briefly discussed a good while ago (perhaps only on IRC)
> if we should have predefined time values ie $now, $yesterday, etc, but
> it was turned down as needles complication at the current point. This
> does not mean that we will never have it, but we should  keep focus on
> getting a clean core spec to start out with.

Ok...we will have to support something similar to the example I gave
in Banshee, but I can see you might want to wait to bring it into the
spec.  I wouldn't worry about having to add lots of special dates,
since from 'now' you can derive 'yesterday' etc.

> When you say that you support the XML query language does that mean
> that I can somehow send Xesam queries to Banshee (fx via a Xesam dbus
> interface or other) or that you use it for stored searches..?

We plan to support both (though at the moment, Banshee's trunk is
being heavily reworked, so it's not ready yet).  The goal is to have
smart playlists be nothing more than stored searches.  If you run
Banshee trunk from a terminal right now, when you type in the search
bar there is debug output showing your query parsed -> generated into
XML, that XML parsed -> turned back into user query language, and the
SQL conditions used to actually search the db.

> There seem to be a lot of C# Xesam integration going on these days;
> Beagle, Nemo, and Banshee. I wonder if they are coordinated in any
> way. Feel free to use the Xesam list to do so if you guys want.

I have not coordinated with them.  I did look at the Beagle/XESAM code
a while back and didn't recall it as being reusable for our project.

Thanks for the kind words!

Gabriel


More information about the Xesam mailing list