2011/7/19 jerome <romjerome@yahoo.fr>
Hi,

> Why don't we put the offending line in a try except block?

Yes, maybe.

Note, there is also related bugs, like #5090
which I cannot close yet (Mantis upgrade ?), but it does not return error but unwanted behavior by switching from Person/Place Tree Views to others views.

http://www.gramps-project.org/bugs/view.php?id=5090

I tried try/except with atk module on gramps.py (gramps session), >>>help(atk) or atk.GObjectAccessible, but it isn't clear how to check the atk status and where this generates error. :(

http://www.pygtk.org/docs/pygtk/class-atkgobjectaccessible.html

I was under Gnome, enable/disable accessibilty support on Gnome sessions and I added print statements, but there is maybe a simplier way to check loaded shared lib, isn't it ?

It is for Gnome desktop, there is maybe a simple test for checking active /var/lib/python-support/python2.x/gtk-2.0/atk.so (do not know the path for Gtk3 !). But this will also be present under KDE (like common 'atk' python module)... I did not have more details.


things changed for gtk3 and are still in flux. Don't put effort in it.

benny
 

Jérôme


--- En date de : Lun 18.7.11, Michiel Nauta <m.d.nauta@hetnet.nl> a écrit :

> De: Michiel Nauta <m.d.nauta@hetnet.nl>
> Objet: Re: [Gramps-devel] TreeView and gail/gir/atk under GNOME desktop
> À: "jerome" <romjerome@yahoo.fr>
> Cc: gramps-devel@lists.sourceforge.net
> Date: Lundi 18 juillet 2011, 21h25
> Hi,
>
> Why don't we put the offending line in a try except block?
>
> try:
>      node =
> self.nodemap.node(node.children[_index][1])
> except indexError, err:
>      # Gnome accessibility support
> accesses path way out line, bug 5078.
>      return None
>
> Michiel
>
> On 07/18/2011 11:51 AM, jerome wrote:
> > Hi,
> >
> >
> > Since many months/years, one issue remains with
> TreeView into Gramps and some Gnome bindings (accessibilty,
> atk, gail, gir, gtk).
> >
> > The problem occurs when the user enables the
> accessibilty support under GNOME desktop.
> >
> > ex: 823956: ERROR: gramps.py: line 142: Unhandled
> exception
> > Traceback (most recent call last):
> >    File
> "/usr/share/gramps/gui/views/treemodels/treebasemodel.py",
> line 814, in on_get_iter
> >      node =
> self.nodemap.node(node.children[_index][1])
> >
> > http://www.gramps-project.org/bugs/view.php?id=5078
> >
> > OK, happy to know that iteration on TreeView under
> Gnome might crash
> > https://bugzilla.gnome.org/show_bug.cgi?id=587020
> > but what could be done on the Gramps side ?
> >
> > 1. all related bugs on manthis bug tracker have been
> already commented and I suppose they could be closed.
> > 2. comment has been added on the wiki since a while,
> but users do not always know if accessibility support is
> enable on their Gnome desktop. Annoying!
> >
> > Should we try to find a way for displaying some
> warning on the gramps session ? like spell checker or
> additional dependencies for users under Gnome.
> >
> >
> > Regards,
> > Jérôme
> >
> >
> ------------------------------------------------------------------------------
> > AppSumo Presents a FREE Video for the SourceForge
> Community by Eric
> > Ries, the creator of the Lean Startup Methodology on
> "Lean Startup
> > Secrets Revealed." This video shows you how to
> validate your ideas,
> > optimize your ideas and identify your business
> strategy.
> > http://p.sf.net/sfu/appsumosfdev2dev
> > _______________________________________________
> > Gramps-devel mailing list
> > Gramps-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gramps-devel
> >
>

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel