Changeset 556

Show
Ignore:
Timestamp:
19/07/2008 09:47:04 (1 month ago)
Author:
nextime
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • packages/astronomy/skyliveng/tags/venus/debian/changelog

    r555 r556  
     1skyliveng (0.1.venus-14) stable; urgency=low 
     2 
     3  * Trying using hald  
     4 
     5 -- Unixmedia S.r.l. (Medianix Devel) <devel@unixmedia.it>  Sat, 19 Jul 2008 09:46:51 +0200 
     6 
    17skyliveng (0.1.venus-13) stable; urgency=low 
    28 
  • packages/astronomy/skyliveng/tags/venus/skylive/fits/fitsimage.py

    r544 r556  
    5858      self._setCanCompare() 
    5959      self._setAutoLevels() 
    60       if platform.system() == 'Linux' and utils.is_eeepc(): 
    61          self._toPIL((640, 480)) 
     60      if (platform.system() == 'Linux') and (utils.is_eeepc()): 
     61         self._toPIL((400, 300)) 
    6262      else: 
    6363         self._toPIL((800, 600)) 
  • packages/astronomy/skyliveng/tags/venus/skylive/skylive.py

    r544 r556  
    16891689   else: 
    16901690      sysType = platform.system() 
    1691       if sysType == 'Linux' and utils.is_eeepc(): 
    1692          sysType == 'EeePC' 
     1691      if (sysType == 'Linux') and (utils.is_eeepc()): 
     1692         sysType = 'EeePC' 
    16931693   if not os.path.exists(os.path.normpath("skylive.rsrc."+sysType+".py")): 
    16941694      sysType = "Linux" 
  • packages/astronomy/skyliveng/tags/venus/skylive/utils.py

    r555 r556  
    3030         os.rmdir(os.path.join(root, name)) 
    3131 
    32  
    3332def is_eeepc(): 
    34    if os.path.isfile('/sys/clas/dmi/id/board_serial'): 
     33   #return True 
     34   if os.path.isfile('/sys/class/dmi/id/board_serial'): 
    3535      try: 
    36          f=open('/sys/clas/dmi/id/board_serial', 'r') 
     36         # hal-get-property --udi '/org/freedesktop/Hal/devices/computer' 
     37         # --key system.hardware.serial 
     38         f=os.popen4('has-get-property --udi "/org/freedesktop/Hal/devices/computer" --key system.hardware.serial') 
    3739         res = f.read(5) 
    3840         f.close() 
     
    4244         pass 
    4345   return False 
     46 
  • packages/astronomy/skyliveng/trunk/debian/changelog

    r555 r556  
     1skyliveng (0.1.0-5) unstable; urgency=low 
     2 
     3  * Trying using hald  
     4 
     5 -- Unixmedia S.r.l. (Medianix Devel) <devel@unixmedia.it>  Sat, 19 Jul 2008 09:46:36 +0200 
     6 
    17skyliveng (0.1.0-4) unstable; urgency=low 
    28 
  • packages/astronomy/skyliveng/trunk/skylive/fits/fitsimage.py

    r542 r556  
    5858      self._setCanCompare() 
    5959      self._setAutoLevels() 
    60       if platform.system() == 'Linux' and utils.is_eeepc(): 
    61          self._toPIL((640, 480)) 
     60      if (platform.system() == 'Linux') and (utils.is_eeepc()): 
     61         self._toPIL((400, 300)) 
    6262      else: 
    6363         self._toPIL((800, 600)) 
  • packages/astronomy/skyliveng/trunk/skylive/skylive.py

    r542 r556  
    16891689   else: 
    16901690      sysType = platform.system() 
    1691       if sysType == 'Linux' and utils.is_eeepc(): 
    1692          sysType == 'EeePC' 
     1691      if (sysType == 'Linux') and (utils.is_eeepc()): 
     1692         sysType = 'EeePC' 
    16931693   if not os.path.exists(os.path.normpath("skylive.rsrc."+sysType+".py")): 
    16941694      sysType = "Linux" 
  • packages/astronomy/skyliveng/trunk/skylive/utils.py

    r554 r556  
    3030         os.rmdir(os.path.join(root, name)) 
    3131 
    32  
    3332def is_eeepc(): 
     33   #return True 
    3434   if os.path.isfile('/sys/class/dmi/id/board_serial'): 
    3535      try: 
    36          f=open('/sys/class/dmi/id/board_serial', 'r') 
     36         # hal-get-property --udi '/org/freedesktop/Hal/devices/computer' 
     37         # --key system.hardware.serial 
     38         f=os.popen4('has-get-property --udi "/org/freedesktop/Hal/devices/computer" --key system.hardware.serial') 
    3739         res = f.read(5) 
    3840         f.close() 
     
    4244         pass 
    4345   return False 
     46