def upload_packages( self,\ directory,\ channel_label=None,\ username=None,\ password=None,\ org_id=None,\ force=False,\ source = 0 ): upload_label = channel_label or self.label upload_username = username or self.test_username upload_password = password or self.test_password upload_org_id = org_id or self.org_id #start_upload = time.time() if not self.filesuploaded or force: misc_functions.upload_packages( upload_label,\ directory,\ org_id = upload_org_id,\ username = upload_username,\ password = upload_password,\ source = source ) self.filesuploaded = True