コード例 #1
0
    def LoadIncellFiles(self, properties_filename, sqlite_filename, incell_filenames):
        if os.path.exists(properties_filename):
            self.LoadFile(properties_filename)
        else:
            self._filename = properties_filename
            self._textfile = ""

        for incell_filename in incell_filenames:
            incell.parse_incell(sqlite_filename, incell_filename, self)
            self.Validate()
        self._initialized = True

        if not os.path.exists(properties_filename):
            self.SaveFile(properties_filename)
コード例 #2
0
    def LoadIncellFiles(self, properties_filename, sqlite_filename, incell_filenames):
        if os.path.exists(properties_filename):
            self.LoadFile(properties_filename)
        else:
            self._filename = properties_filename
            self._textfile = ""
            self._filters = ObservableDict()

        for incell_filename in incell_filenames:
            incell.parse_incell(sqlite_filename, incell_filename, self)
            self.Validate()
        self._initialized = True

        if not os.path.exists(properties_filename):
            self.save_file(properties_filename)
コード例 #3
0
    def LoadIncellFiles(self, properties_filename, sqlite_filename, incell_filenames):
        if os.path.exists(properties_filename):
            self.LoadFile(properties_filename)
        else:
            self._filename = properties_filename
            self._textfile = ""
            self._filters = ObservableDict()
            self._groups = {}

        for incell_filename in incell_filenames:
            incell.parse_incell(sqlite_filename, incell_filename, self)
            self.Validate()
        self._initialized = True

        if not os.path.exists(properties_filename):
            self.save_file(properties_filename)