Exemplo n.º 1
0
 def __init__(self, report):
     """
     :param report: A report object to be notified.
     :type report: ProgressReport
     """
     DownloadBaseCallback.__init__(self)
     self.report = report
Exemplo n.º 2
0
 def __init__(self, report):
     """
     :param report: A report object to be notified.
     :type report: ProgressReport
     """
     DownloadBaseCallback.__init__(self)
     self.report = report
Exemplo n.º 3
0
    def __init__(self, observer):
        """
        Sets up instance variables

        Arguments:
            total_pkgs - number of packages to download
        """

        DownloadBaseCallback.__init__(self)

        self.observer = observer
Exemplo n.º 4
0
    def __init__(self, observer):
        """
        Sets up instance variables

        Arguments:
            total_pkgs - number of packages to download
        """

        DownloadBaseCallback.__init__(self)

        self.observer = observer
Exemplo n.º 5
0
    def __init__(self, total_pkgs):
        """
        Sets up instance variables

        Arguments:
            total_pkgs - number of packages to download
        """

        self.total_pkgs = total_pkgs
        self.downloaded_pkgs = 0
        self.last_pct = 0
        self.last_time = 0
        DownloadBaseCallback.__init__(self)
Exemplo n.º 6
0
    def __init__(self, callback):
        """
        Constructor

        @type  callback: method
        @param callback: user callback
        """
        # call parent constructor
        DownloadBaseCallback.__init__(self)

        # initialize packages URL dictionary
        self.__packagesUrl = {}

        # set user callback
        self.__userCallback = callback
Exemplo n.º 7
0
 def __init__(self, total_pkgs):
     self.total_pkgs = total_pkgs
     self.downloaded_pkgs = 0
     self.last_pct = 0
     self.last_time = 0
     DownloadBaseCallback.__init__(self)
Exemplo n.º 8
0
 def __init__(self, total_pkgs):
     self.total_pkgs = total_pkgs
     self.downloaded_pkgs = 0
     self.last_pct = 0
     self.last_time = 0
     DownloadBaseCallback.__init__(self)
Exemplo n.º 9
0
 def __init__(self, sink):
     DownloadBaseCallback.__init__(self)
     self._sink = sink