def set_upload(self, to_upload): """Set the amount of data to be uploaded, and update the status bar.""" if to_upload: self.to_upload = greek(to_upload) else: self.to_upload = None self.__update()
def got_quota(rsp): self.maxfile = int(rsp.find("user/filesize").get("maxmb")) if int(rsp.find("user").get("ispro")): self.quota = None else: self.quota = greek(int(rsp.find("user/bandwidth").get("remainingbytes"))) self.__update()
def got_quota(rsp): self.maxfile = int(rsp.find("user/filesize").get("maxmb")) if int(rsp.find("user").get("ispro")): self.quota = None else: self.quota = greek( int(rsp.find("user/bandwidth").get("remainingbytes"))) self.__update()