On Tue, 2006-02-07 at 10:02 +0000, Magnus Therning wrote: > In Epilicious (Epiphany plugin (written in pythong) for syncing > del.icio.us and Epiphany bookmarks and tags) I need to skip over the > "automatic topics" (All, Local Sites, Most Visited, Not Categorised). > Currently I'm doing this by matching on their names. A Korean user found > out that this isn't very good since their names apparently are > localized. > > How do I find those topics in a reliable way?
Check them for either ID of 0 ("All") or EPHY_NODE_KEYWORD_PROP_PRIORITY
of EPHY_NODE_SPECIAL_PRIORITY (1).
Sample code:
>>> import epiphany
>>> shell = epiphany.ephy_shell_get_default()
>>> b = shell.get_bookmarks()
>>> t = b.get_keywords()
>>> map(lambda t: "" + str(t.get_id()) + " - " +
t.get_property_string(epiphany.NODE_KEYWORD_PROP_NAME) + " - " +
str(t.get_property_int(epiphany.NODE_KEYWORD_PROP_PRIORITY)),
t.get_children())
--
Adam Hooper <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
_______________________________________________ epiphany-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/epiphany-list
