Beispiel #1
0
 def resend_email(self):
     if pywincmds.web_check(self.website_verified_url, self.verified_keyword, self.inteveral_time, self.web_decode):
         os.chdir(self.online_site_path)
         updated_content = os.linesep.join(pysvn.st(""))
         pyprocessemail.update_to_three(self.full_site_name, self.to_list, self.product_trunk_url, pysvn.py_get_svn_info_revision(self.product_trunk_dir, self.product_username, self.product_password), updated_content, self.log_url)
     else:
         print("站点启动失败")
         exit("1")
Beispiel #2
0
 def update(self, flag = True):
     self.check_sourcecode()
     pywincmds.del_all_except_hidden_directories(self.product_tag_dir)
     pywincmds.robocopy(self.product_trunk_dir, self.product_tag_dir, py_exclude_dirs = ".svn _svn config Config_online log", py_exclude_files = "web.config changelist.txt revision_numbers.txt")
     pywincmds.robocopy(self.product_trunk_dir + os.sep + "Config_online", self.product_tag_dir, py_exclude_dirs = ".svn _svn")
     self.del_files(self.product_tag_dir)
     pywincmds.robocopy(self.product_tag_dir, self.online_site_path, py_exclude_dirs = ".svn _svn Config_online log", py_exclude_files = "changelist.txt revision_numbers.txt")
     self.del_files(self.online_site_path)
     if flag:
         pywincmds.restart_app_pool(self.workspace + os.sep + "sbp_2.0", self.app_pool)
     if pywincmds.web_check(self.website_verified_url, self.verified_keyword, self.inteveral_time, self.web_decode):
         os.chdir(self.online_site_path)
         updated_content = os.linesep.join(pysvn.st(""))
         pyprocessemail.update_to_three(self.full_site_name, self.to_list, self.product_trunk_url, pysvn.py_get_svn_info_revision(self.product_trunk_dir, self.product_username, self.product_password), updated_content, self.log_url)
     else:
         print("站点启动失败")
         exit("1")