Exemplo n.º 1
0
 def __init__(self, tracker_url, downloader, version=None):
     TrackerRequest.__init__(self,
                             "GetItemFromTracker",
                             tracker_url,
                             "request",
                             may_be_canceled=True)
     self.downloader = downloader
     self.version = version
Exemplo n.º 2
0
	def __init__(self, tracker_url, downloader, files, version=None, rsync_target_source_path="./", rsync_bwlimit="0", rsync_extra_args=[], curl_connect_timeout="60", curl_speed_limit="1", curl_speed_time="900"):
		TrackerRequest.__init__(self, "Upload2", tracker_url, "upload")

		self.downloader = downloader
		self.version = version

		self.files = files
		self.rsync_target_source_path = rsync_target_source_path
		self.rsync_bwlimit = rsync_bwlimit
		self.rsync_extra_args = rsync_extra_args
		self.curl_connect_timeout = curl_connect_timeout
		self.curl_speed_limit = curl_speed_limit
		self.curl_speed_time = curl_speed_time
Exemplo n.º 3
0
    def __init__(self, tracker_url, downloader, files, version=None, rsync_target_source_path="./", rsync_bwlimit="0", rsync_extra_args=[], curl_connect_timeout="60", curl_speed_limit="1", curl_speed_time="900"):
        TrackerRequest.__init__(self, "Upload2", tracker_url, "upload")

        self.downloader = downloader
        self.version = version

        self.files = files
        self.rsync_target_source_path = rsync_target_source_path
        self.rsync_bwlimit = rsync_bwlimit
        self.rsync_extra_args = rsync_extra_args
        self.curl_connect_timeout = curl_connect_timeout
        self.curl_speed_limit = curl_speed_limit
        self.curl_speed_time = curl_speed_time
Exemplo n.º 4
0
	def __init__(self, tracker_url, downloader, version = None):
		TrackerRequest.__init__(self, "GetItemFromTracker", tracker_url, "request", may_be_canceled=True)
		self.downloader = downloader
		self.version = version