Re: [Tracker] Tracker / Tomboy / Maemo



Hi

On Fri, Jun 12, 2009 at 6:51 PM, Cornelius Hald <hald icandy de> wrote:
On Fri, 2009-06-12 at 17:29 +0200, Philip Van Hoof wrote:
> > * Is there already an indexer for Tomboy or GNote[4]? If yes, I think I
> > could reuse it because the XML file format is exactly the same. While
> > searching I only found this message (including some code):
> > http://www.mail-archive.com/tracker-list gnome org/msg00954.html
>
> In master you should probably just make an ontology for notes and store
> it directly into Tracker's storage, instead of storing XML files
> yourself.
>

 But if your target is maemo/fremantle, you must use the 0.6 branch, and there the things are not so easy :(


> > * Under /usr/lib/tracker I see extract-modules and indexer-modules. Is
> > there a document which explains the difference or could you please
> > explain shortly?
> >

 Basically you need to write an indexer module when you dont identify the relevant files by mimetype, but by locations (which is your case).

 Probably renaming the files.c indexer-module to tomboy.c module, set in the configuration file (tomboy.module) that the module is interested in everything under $HOME/.tomboy (not recursively), and implementing few methods should be enough. Also you need to add a category and a couple of properties. (Just few lines in the .service files under data/services)


> > * If I understood correctly I could store my notes directly inside
> > Tracker without saving them as XML in the file system. What advantages
> > would that bring (except not having to read/write XML)?
>

 Not in 0.6. That will be possible in 0.7 (which is "master" in the git repo).


That sounds promising and should be doable soon. At the moment there is
work going on to get storage backend plug-ins into Conboy. Once that's
done I'll try to write a plug-in that directly saves to Tracker.

 That wont work in fremantle (though we will need something similar for the 0.7 versions). I would go for the indexer module, at the moment.

 Regards, and great to hear about your work,

Ivan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]