"static" template methods don't appear in introspection

Bug #1250096 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-dbusmock
Fix Released
Low
Martin Pitt

Bug Description

$ DBUS_SYSTEM_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS PYTHONPATH=. python3 -m dbusmock -t logind
$ gdbus introspect -e -d org.freedesktop.login1 -o /org/freedesktop/login1

This misses methods like ListUsers() and AddSeat() which are defined as "real" methods in the template instead of being in AddMethods().

Martin Pitt (pitti)
Changed in python-dbusmock:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Philip Withnall (drbob) wrote :

Here we go. It was failing because the dynamically added methods weren’t being added to self.methods, and hence weren’t being iterated over by the introspection code.

Revision history for this message
Martin Pitt (pitti) wrote :

Applied to trunk (r147) together with a test case. Thank you!

Changed in python-dbusmock:
status: Triaged → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in 0.9.

Changed in python-dbusmock:
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.