Introspection bindings do not export any methods

Bug #920810 reported by Matt Fischer
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Light Display Manager
Fix Released
Medium
Unassigned
lightdm (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I was trying to write a basic greeter, following the example code when I ran into some issues. I then started doing introspection and it seems to show that the python bindings for objects are no longer exporting any methods:

>>> g = LightDM.Greeter()
>>> dir(g)
['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__gtype__', '__hash__', '__info__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'parent_instance']

The *Class() objects still show some methods on the other hand:

>>> dir(LightDM.GreeterClass)
['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__gtype__', '__hash__', '__info__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'authentication_complete', 'autologin_timer_expired', 'parent_class', 'reserved1', 'reserved2', 'reserved3', 'reserved4', 'reserved5', 'reserved6', 'show_message', 'show_prompt']

This pattern repeats for Session/SessionClass, Language/LanguageClass, etc. (I did not check them all).

Matt Fischer (mfisch)
summary: - lighdm some python bindings do not export any methods
+ python bindings do not export any methods
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Fixed in master

Changed in lightdm (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in lightdm:
status: New → Triaged
importance: Undecided → Medium
summary: - python bindings do not export any methods
+ Introspection bindings do not export any methods
Changed in lightdm (Ubuntu):
status: Triaged → Fix Committed
Changed in lightdm:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lightdm - 1.1.2-0ubuntu1

---------------
lightdm (1.1.2-0ubuntu1) precise; urgency=low

  * New upstream release:
    - Add regression tests for getting the user language and layout
    - Stop accidentally distributing libsystem
    - Fix introspection bindings not containing any methods (LP: #920810)
    - lightdm-set-defaults can now set the autologin user
    - Add Python greeter regression tests (representative of all introspection
      based greeters)
    - Wait for the VT to become active when switching to avoid a suspected
      race condition somewhere between LightDM, X, ConsoleKit and the kernel.
      (LP: #851612)
    - Stop lightdm_greeter_start_session_sync() blocking on success.
  * debian/lightdm.prerm:
    - Fix incorrect location of lightdm binary (found by Rolf Anders)
 -- Robert Ancell <email address hidden> Fri, 10 Feb 2012 17:32:47 +1100

Changed in lightdm (Ubuntu):
status: Fix Committed → Fix Released
Changed in lightdm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.