示例#1
0
    def _load_directory_paths(self):
        #Load paths to various directory settings.
        comp_out_path = composer_output_path()
        comp_temp_path = composer_template_path()
        source_doc_path = source_documents_path()

        if not source_doc_path is None:
            self.txtRepoLocation.setText(source_doc_path)

        if not comp_out_path is None:
            self.txt_output_dir.setText(comp_out_path)

        if not comp_temp_path is None:
            self.txt_template_dir.setText(comp_temp_path)
示例#2
0
文件: options_base.py 项目: gltn/stdm
    def _load_directory_paths(self):
        #Load paths to various directory settings.
        comp_out_path = composer_output_path()
        comp_temp_path = composer_template_path()
        source_doc_path = source_documents_path()

        if not source_doc_path is None:
            self.txtRepoLocation.setText(source_doc_path)

        if not comp_out_path is None:
            self.txt_output_dir.setText(comp_out_path)

        if not comp_temp_path is None:
            self.txt_template_dir.setText(comp_temp_path)
示例#3
0
    def __init__(self, old_new_tables):
        """
        Updates template views.
        :param old_new_tables: Dictionary of old and new tables.
        :type old_new_tables: Dictionary
        :return:
        :rtype:
        """
        if len(old_new_tables) < 1:
            return

        self.profile_name = list(old_new_tables.keys())[0].lower()
        self.prefix = self.profile_name[:2]
        self.old_new_tables = list(old_new_tables.values())[0]

        self.documents_path = source_documents_path()

        self.supporting_doc_columns = {
            'social_tenure_id': 'social_tenure_relationship_id',
            'source_doc_id': 'supporting_doc_id'
        }
        config = StdmConfiguration.instance()
        self.updater = ConfigurationFileUpdater(iface)
        self.all_profiles = list(config.profiles.keys())