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 471391 - Allow accessing reference count data
Allow accessing reference count data
Status: RESOLVED FIXED
Product: pyorbit
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Python bindings maintainers
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-29 01:43 UTC by Eitan Isaacson
Modified: 2008-08-18 21:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (848 bytes, patch)
2007-08-29 01:44 UTC, Eitan Isaacson
none Details | Review
Proposed patch (909 bytes, patch)
2007-08-29 18:03 UTC, Eitan Isaacson
committed Details | Review

Description Eitan Isaacson 2007-08-29 01:43:05 UTC
We have very little information about a CORBA object's life cycle in python.
The following patch will allow examining the current reference count of a given object. This is useful when an application has data associated with a given CORBA object, and it needs indication as to when it could be disposed. See bug 469443.
Comment 1 Eitan Isaacson 2007-08-29 01:44:45 UTC
Created attachment 94536 [details] [review]
Proposed patch

This adds a method to a CORBA object called _get_refcount(). Which does pretty much that.
Comment 2 Gustavo Carneiro 2007-08-29 11:10:05 UTC
While I don't mind adding a method to retrieve the refcount, I don't think _get_refcount is the best method name for that.  The name refcount is too overloaded to be used without further context.  There is a python wrapper refcount, a ORBit stub (CORBA_Object) refcount, sometimes Bonobo refcount...

I would suggest a name like _get_orbit_object_refcount().  'orbit' in the name makes it clear it is an ORBit extension, not standard CORBA, orbit_object makes it clear it is about the corba object.
Comment 3 Eitan Isaacson 2007-08-29 18:03:26 UTC
Created attachment 94564 [details] [review]
Proposed patch

Changed to proposed method name.
Comment 4 Gustavo Carneiro 2008-01-02 15:24:50 UTC
Could you please commit to svn trunk?  Thanks!
Comment 5 André Klapper 2008-08-18 19:30:32 UTC
Eitan, Gustavo: *ping* - patch accepted but rotting.
Comment 6 Gian Mario Tagliaretti 2008-08-18 21:09:21 UTC
I committed for Gustavo.

Sending        ChangeLog
Sending        src/pycorba-object.c
Transmitting file data ..
Committed revision 159.