Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 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()
Ejemplo n.º 4
0
 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()