[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82
Michael 'Mickey' Lauer
mickey at vanille-media.de
Mon Feb 2 18:51:50 UTC 2009
The following commit has been merged in the master branch:
commit 1e152891148b69ea11b58f264071c57dfc0bfb77
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Sat Jan 3 15:51:44 2009 +0100
odeviced: kernel26: fix parameters in KObjectDispatcher callback
diff --git a/framework/subsystems/odeviced/kernel26.py b/framework/subsystems/odeviced/kernel26.py
index 400fbb9..5f8c1fa 100644
--- a/framework/subsystems/odeviced/kernel26.py
+++ b/framework/subsystems/odeviced/kernel26.py
@@ -243,7 +243,7 @@ class PowerSupply( dbus.service.Object ):
data = readFromFile( "%s/uevent" % self.node )
parts = data.split( '\n' )
d = dict( [ x.split('=') for x in parts if '=' in x ] )
- self.handlePropertyChange( **d )
+ self.handlePropertyChange( "coldplug", "<this-battery>", **d )
return False # mainloop: don't call me again
def readCapacity( self ):
@@ -279,10 +279,10 @@ class PowerSupply( dbus.service.Object ):
self.sendPowerStatusIfChanged( "critical" )
return True # call me again
- def handlePropertyChange( self, **properties ):
+ def handlePropertyChange( self, action, path, **properties ):
if not self.isPresent():
return False # don't call me again
- logger.debug( "got property change from uevent socket: %s" % properties )
+ logger.debug( "got property action '%s' from uevent for path '%s': %s" % ( action, path, properties ) )
try:
self.online = ( properties["POWER_SUPPLY_ONLINE"] == '1' )
except KeyError:
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list