예제 #1
0
 def _do_start(self, now=None):
     """
     Notification that a file download has started.
     The event is forwarded to the report object to be consolidated
     with other reported progress information.
     :param now: timestamp.
     :type now: float
     """
     DownloadBaseCallback._do_start(self, now)
     action = 'Downloading'
     package = ' | '.join((self._getName(), self.totSize))
     self.report.set_action(action, package)
예제 #2
0
파일: rpmtools.py 프로젝트: ulif/pulp_rpm
 def _do_start(self, now=None):
     """
     Notification that a file download has started.
     The event is forwarded to the report object to be consolidated
     with other reported progress information.
     :param now: timestamp.
     :type now: float
     """
     DownloadBaseCallback._do_start(self, now)
     action = 'Downloading'
     package = ' | '.join((self._getName(), self.totSize))
     self.report.set_action(action, package)