Exemple #1
0
 def SetFileImportOptions( self, file_import_options: FileImportOptions.FileImportOptions ):
     
     with self._lock:
         
         if file_import_options.DumpToString() != self._file_import_options.DumpToString():
             
             self._file_import_options = file_import_options
             
             self._SerialisableChangeMade()
Exemple #2
0
    def ShouldImport(self,
                     file_import_options: FileImportOptions.FileImportOptions):

        if self.status == CC.STATUS_UNKNOWN:

            return True

        if self.status == CC.STATUS_DELETED:

            if not file_import_options.ExcludesDeleted():

                return True

        return False