Author: dmeyer
Date: Tue Mar 11 13:13:38 2008
New Revision: 3179

Log:
fix changed (?) hal parameter

Modified:
   trunk/beacon/src/server/hwmon/hal.py

Modified: trunk/beacon/src/server/hwmon/hal.py
==============================================================================
--- trunk/beacon/src/server/hwmon/hal.py        (original)
+++ trunk/beacon/src/server/hwmon/hal.py        Tue Mar 11 13:13:38 2008
@@ -270,7 +270,7 @@
         # No disc and not already marked as removable.
         # Check if the device is removable
         try:
-            fd = open(os.path.dirname(prop["linux.sysfs_path_device"]) + 
'/removable')
+            fd = open(os.path.dirname(prop["linux.sysfs_path"]) + '/removable')
             rm = fd.read(1)
             fd.close()
             if rm != '1':
@@ -302,8 +302,8 @@
 
 
 if __name__ == '__main__':      
-    def new_device(self, dev):
-        print dev
+    def new_device(dev):
+        print dev.udi
     signals['add'].connect(new_device)
     start()
     kaa.main.run()

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to