Python extension manipulating bookmarks



I've just upgraded to Gnome 2.12.1 (on Ubuntu) and with it came Epiphany
1.8.2. This seemingly caused my python extension to stop working. :(

I've tracked it down to a problem with removing a URL from the bookmark.
In 1.6 the following code would work:

 bms = epiphany.ephy_shell_get_default().get_bookmarks()
 [ code that found a specific bookmarks 'b' ]
 bms.disconnect(b.get_id())

After this, the bookmark would be removed from the list of bookmarks.
Since the upgrade the code above has no effect at all!

How do I properly remove a bookmark in a Python extension?
Are there any requirements on the bookmark I want to remove? (e.g. that
it has no keywords)

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus therning org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Due to the suspicious nature of crypto users I have a feeling DES will
be with us forever, we will just keep adding keys and cycles... There
is a parallel between designing electronic commerce infrastructure
today that uses weak cryptography (i.e. 40 or 56 bit keys) and, say,
designing air traffic control systems in the '60s using two digit year
fields. ... Just because you can retire before it all blows up doesn't
make it any less irresponsible.
      -- Arnold G. Reinhold

Attachment: pgpwE96WlOuWV.pgp
Description: PGP signature



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