def login_to_cms(self):
if (not cms.init()):
tkMessageBox.showerror("Connection Error", "Unable to connect to CMS now. Please try again later.")
self.statusbar.config(bg="firebrick2",text=" Cannot connect to CMS ")
return False
# global data_file
self.user_details = self.load_details(Gui.data_file)
# print user_details
if (self.user_details != None):
self.website = cms.submit_form(self.user_details)
if (self.website == False):
tkMessageBox.showerror("User details Error",
"Looks like there is an error in your user details. Please check them again")
return False
return True
评论列表
文章目录