Esempio n. 1
0
 def checkNewPost(self):
     "checks whether there is some post with new information on the web"
     currentPost = optionGet("WebPostNumber", 0, "int")
     webPostNumber = int(self.returnSiteContent("http://www.cmmanagerweb.appspot.com/post"))
     if  webPostNumber > currentPost:
         DialogBox(self, "New information", self.returnSiteContent(
             "http://www.cmmanagerweb.appspot.com/post/message"))
         optionWrite("WebPostNumber", webPostNumber)
Esempio n. 2
0
 def checkNewPost(self):
     "checks whether there is some post with new information on the web"
     currentPost = optionGet("WebPostNumber", 0, "int")
     webPostNumber = int(
         self.returnSiteContent("http://www.cmmanagerweb.appspot.com/post"))
     if webPostNumber > currentPost:
         DialogBox(
             self, "New information",
             self.returnSiteContent(
                 "http://www.cmmanagerweb.appspot.com/post/message"))
         optionWrite("WebPostNumber", webPostNumber)
Esempio n. 3
0
 def okFun(self):
     "destroys window and saves option dont show again option if selected"
     self.destroy()
     if self.dontshow and self.dontShowVar.get():
         optionWrite(self.dontshow, self.optionValue)
Esempio n. 4
0
 def okFun(self):
     "destroys window and saves option dont show again option if selected"
     self.destroy()
     if self.dontshow and self.dontShowVar.get():
         optionWrite(self.dontshow, self.optionValue)