home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / UpdateManager / MetaReleaseGObject.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.7 KB  |  41 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import pygtk
  5. pygtk.require('2.0')
  6. import gobject
  7. import thread
  8. import urllib2
  9. import os
  10. import string
  11. import apt_pkg
  12. import time
  13. import rfc822
  14. from subprocess import Popen, PIPE
  15. from Core.MetaRelease import MetaReleaseCore
  16.  
  17. class MetaRelease(MetaReleaseCore, gobject.GObject):
  18.     __gsignals__ = {
  19.         'new_dist_available': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_PYOBJECT,)),
  20.         'dist_no_longer_supported': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()) }
  21.     
  22.     def __init__(self, useDevelopmentRelase = False, useProposed = False):
  23.         gobject.GObject.__init__(self)
  24.         MetaReleaseCore.__init__(self, useDevelopmentRelase, useProposed)
  25.         gobject.timeout_add(1000, self.check)
  26.  
  27.     
  28.     def check(self):
  29.         keepRuning = True
  30.         if self.no_longer_supported is not None:
  31.             keepRuning = False
  32.             self.emit('dist_no_longer_supported')
  33.         
  34.         if self.new_dist is not None:
  35.             keepRuning = False
  36.             self.emit('new_dist_available', self.new_dist)
  37.         
  38.         return keepRuning
  39.  
  40.  
  41.