コード例 #1
0
ファイル: Factory.py プロジェクト: drkovalskyi/glideinWMS
 def get_new_config_entries(self):
   """This method is intended to retrieve new configuration file entry
      element after the initial installation is complete.  It will 
      create a file containing the selected entry points that can be
      merged into the existing Factory configuration file.
   """
   self.get_config_entries_data()
   filename = "%s/new_entries.%s" % (self.config_dir(),common.time_suffix())
   common.write_file("w",0644,filename,self.config_entries_data())
コード例 #2
0
ファイル: VOFrontend.py プロジェクト: Akel/glideinWMS
 def get_new_config_group(self):
   """This method is intended to create a new group element after the initial 
      installation is complete.  It will create a file containing the group
      and job selection/matchin criteria.  This can then be manually merged 
      into the existing frontend configuration file.
   """
   filename = "%(config_dir)s/%(group)s.%(time)s" % \
        { "config_dir" : self.config_dir(),
          "group"      : self.group_name(),
          "time"       : common.time_suffix(),}
   common.write_file("w",0644,filename,self.get_match_criteria())