[Pidgin] #3546: D-Bus inconsistency with regards to the type of	returned value/parameters needed
    Pidgin 
    trac at pidgin.im
       
    Sun Oct 14 06:40:38 EDT 2007
    
    
  
#3546: D-Bus inconsistency with regards to the type of returned value/parameters
needed
---------------------+------------------------------------------------------
Reporter:  ingelres  |       Owner:  lschiere    
    Type:  defect    |      Status:  new         
Priority:  minor     |   Component:  unclassified
 Version:  2.2.1     |    Keywords:              
 Pending:  0         |  
---------------------+------------------------------------------------------
 Hi,
 The following piece of Python code does not work:
 {{{
 current    = self.dbusInterface.PurpleSavedstatusGetCurrent()
 statusType = self.dbusInterface.PurpleSavedstatusGetType(current)
 }}}
 It throws an exception because status is a dbus.int32 while
 PurpleSavedstatusGetType() want a dbus.uint32. The solution is to cast
 statusType into a dbus.uint32 but maybe the inconsistency should be fixed.
 As a side note, this code used to work previously and stopped working with
 Ubuntu Gutsy. Maybe some extra checks have been added recently in D-Bus.
-- 
Ticket URL: <http://developer.pidgin.im/ticket/3546>
Pidgin <http://pidgin.im>
Pidgin
    
    
More information about the Tracker
mailing list