From: Doug B. <dou...@gm...> - 2013-09-03 17:25:23
|
Sounds good to me! -Doug On Tue, Sep 3, 2013 at 1:04 PM, John Ralls <jr...@ce...> wrote: > Colleagues, > > We use gramps.gui.display.display_url rather widely to open urls in either the htmlview plugin or the user's default browser. The latter is accomplished by first trying (1) to use xdg-open or its equivalent on other platforms, then (2) trying webbrowser.open(), and (3) finally to attempt to open directly a rather short list of specific browsers by name. > > My beef with this is that (2) also does (1) and (3), except with a much longer list of browsers. Since webbrowser is part of the Python Standard Library, it's maintained by the Python maintainers and is likely to be more portable and more current than anything we do. > > I propose to simplify display_url() to try the htmlview plugin and fall back only to webbrowser.open. Any objections or concerns? > > Regards, > John Ralls > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel |