Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Query system documentation up

0 views
Skip to first unread message

Brett Wilson

unread,
Mar 20, 2006, 3:32:12 PM3/20/06
to
If you are interested in using the places query system, I've started a
wiki page on how to use it:

http://developer.mozilla.org/en/docs/Places:Query_System

Brett

Axel Hecht

unread,
Mar 20, 2006, 5:08:03 PM3/20/06
to

Looking at the code, wouldn't createFoo or newFoo be better than
getNewFoo? Not sure if we have a coding style for that.
To me, getNewFoo sounds like there'd be a getOldFoo, too :-/

Axel

Henrik Gemal

unread,
Mar 21, 2006, 10:59:42 AM3/21/06
to

A few questions:

- Is there a way to list all livemarks?
- does "bookmarksRoot" include all bookmarks including those on the
personal toolbar?

Brett Wilson

unread,
Mar 21, 2006, 12:06:47 PM3/21/06
to
> - Is there a way to list all livemarks?

The livemark service uses annotations to identify livemark folders. You
can look up how it works in the livemark service, but this is not
guaranteed not to changed.

> - does "bookmarksRoot" include all bookmarks including those on the
> personal toolbar?

Bookmarks root is the menu. Toolbar root is the toolbar. The toolbar is
no longer nested inside the menu. The places root is the new root of
everything. You will be able to have folders off the places root if you
want that don't correspond to any UI.

Joe Hughes

unread,
Mar 21, 2006, 12:23:16 PM3/21/06
to

Right now, bookmarksRoot refers to the root of things that appear in the
Bookmarks menu. There's a separate toolbarRoot, and it will be
possible to create new folders which are peers of the bookmark menu and
toolbar roots.

placesRoot is the top-level root of the whole system.

.joe.

Mossop

unread,
Mar 21, 2006, 6:38:09 PM3/21/06
to

I've been looking at the onlyBookmarks property. As I read it it should
only return Bookmark folders and their contents, however In my
experiments a tree that I use ends up having the two history folders as
well. Is this a mistake in the code or in my interpretation of the
behaviour?

Mossop

Brett Wilson

unread,
Mar 21, 2006, 7:06:57 PM3/21/06
to
Mossop wrote:
> I've been looking at the onlyBookmarks property. As I read it it should
> only return Bookmark folders and their contents, however In my
> experiments a tree that I use ends up having the two history folders as
> well. Is this a mistake in the code or in my interpretation of the
> behaviour?

Sounds like a bug. Can you file it?

Ben Goodger

unread,
Mar 22, 2006, 1:38:24 PM3/22/06
to Henrik Gemal
Henrik Gemal wrote:
> - Is there a way to list all livemarks?

There is a query in the places root that shows all subscribed livemarks
- the subscriptions folder.

If you construct a query for those items who have an annotation set to
"livemark/feedURI", you'll get back a resultset of livemark folders.

Also (cool!) if you construct a query for items who have an annotation
set to "livemark/bookmarkFeedURI" you'll get a resultset of all of the
individual posts in _all_ livemark folders. (instant aggregation!) ...
although sorting by annotation doesn't work yet, so it's not quite useful.

-Ben

Henrik Gemal

unread,
Mar 22, 2006, 4:12:07 PM3/22/06
to
Ben Goodger wrote:
> Henrik Gemal wrote:
>> - Is there a way to list all livemarks?
>
> There is a query in the places root that shows all subscribed livemarks
> - the subscriptions folder.
>
> If you construct a query for those items who have an annotation set to
> "livemark/feedURI", you'll get back a resultset of livemark folders.
>

Any chance you could give me a hint on how to do this?
I'm not sure on how to use the annotation service

--
Henrik Gemal
Mozilla Evangelist

Mozilla Blog with news, devinfo, links, etc:
http://gemal.dk

Brett Wilson

unread,
Mar 22, 2006, 4:29:50 PM3/22/06
to
Henrik Gemal wrote:
> Any chance you could give me a hint on how to do this?
> I'm not sure on how to use the annotation service

1. Read the query documentation that started this thread.
2. Set the annotation field in the query object to the annotation name
you are looking for. Folders or URLs with that annotation will appear in
the result.

Brett

Mossop

unread,
Mar 23, 2006, 9:32:46 AM3/23/06
to
0 new messages