After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319097 - pyspi patch for hypertext object support
pyspi patch for hypertext object support
Status: RESOLVED FIXED
Product: pyspi
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: PySPI Maintainers
PySPI Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-17 18:18 UTC by Marius Andreiana
Modified: 2005-11-10 17:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for hypertext support (1.60 KB, patch)
2005-10-17 18:19 UTC, Marius Andreiana
needs-work Details | Review
hypertext and hyperlink objects bindings (5.13 KB, patch)
2005-10-18 19:15 UTC, Marius Andreiana
needs-work Details | Review
hyper* bindings (5.49 KB, patch)
2005-11-03 21:46 UTC, Zack Cerza
none Details | Review
hyper* patch (6.32 KB, patch)
2005-11-10 17:23 UTC, Zack Cerza
committed Details | Review

Description Marius Andreiana 2005-10-17 18:18:35 UTC
I've attached a patch for current CVS HEAD which implements support for
Hypertext object.

I haven't implemented all member functions, but it's enough to be used
by dogtail.

Please review & commit.

Thanks
Comment 1 Marius Andreiana 2005-10-17 18:19:45 UTC
Created attachment 53593 [details] [review]
patch for hypertext support
Comment 2 Zack Cerza 2005-10-17 21:40:25 UTC
It looks quite good so far, but:

- Hypertext.getLink() doesn't raise an AtspiException. It doesn't really *have*
to, but it should only say it does if it in fact does.
- Hypertext.getNLinks() needs to be bound.

In general though, Hypertext support doesn't really give us much without
Hyperlink support. I did read that you're planning on implementing that -
if/when you do, just add it to this patch as opposed to opening a separate bug.

Thanks!
Comment 3 Marius Andreiana 2005-10-18 19:14:41 UTC
Thanks for the indications, attaching another patch, more complete.
It does have a problem somewhere: with this patch pyspi compiles ok, but after
installing it won't be recognized by "import pyspi":
ImportError: Error importing the AT-SPI bindings

Please advise
Comment 4 Marius Andreiana 2005-10-18 19:15:43 UTC
Created attachment 53624 [details] [review]
hypertext and hyperlink objects bindings
Comment 5 Zack Cerza 2005-11-03 21:45:44 UTC
Sorry for taking so long to reply.

The patch currently doesn't work:

t a>>> import atspi
Traceback (most recent call last):
  • File "<stdin>", line 1 in ?
ImportError: ./atspi.so: undefined symbol: Accessible_getHyperlink

'grep Accessible_getHyperlink /usr/include/at-spi-1.0/cspi/*' returns nothing,
so I'm guessing that function doesn't actually exist.

I'm in the process of rewriting your patch. I'll attach what I have so far.
Comment 6 Zack Cerza 2005-11-03 21:46:33 UTC
Created attachment 54295 [details] [review]
hyper* bindings
Comment 7 Marius Andreiana 2005-11-08 20:38:34 UTC
Hi Zack,

Looks good to me. Could you please commit it? We can make small modifications
later if required. The real test will be with dogtail having hyper* objects
support too.
Comment 8 Zack Cerza 2005-11-10 17:23:26 UTC
Created attachment 54594 [details] [review]
hyper* patch

Here's what I just committed. It may need more work, but for now I think it's
OK. Getting all this into dogtail might be pretty hard, though.

Thanks, Marius.