Beispiel #1
0
    def bt_SaveDefaultsClick(self, event):
        section = "scan"

        # Verbose setting
        guiFunctions.configWrite(section, "verbose", self.ck_ScanVerbose.Value)

        # Database setting
        guiFunctions.configWrite(section, "database", self.tc_MainDatabase.Value)

        # Folder setting, comma delineate multiple folder entries
        folders = ""
        numLines = 0
        maxLines=(int(self.multiText.GetNumberOfLines()))
        while (numLines < maxLines):
            folders += str(self.multiText.GetLineText(numLines))
            numLines += 1
            if numLines != maxLines:
                folders += "|"
        guiFunctions.configWrite(section, "folder", folders)

        guiFunctions.statusText(self, "Defaults saved...")
Beispiel #2
0
    def bt_SaveDefaultsClick(self, event):
        section = "scan"

        # Verbose setting
        guiFunctions.configWrite(section, "verbose", self.ck_ScanVerbose.Value)

        # Database setting
        guiFunctions.configWrite(section, "database", self.tc_MainDatabase.Value)

        # INI Setting
#        guiFunctions.configWrite(section, "inioverride", self.tc_INI.Value)
        
        # Folder setting, comma delineate multiple folder entries
        folders = ""
        numLines = 0
        maxLines=(int(self.multiText.GetNumberOfLines()))
        while (numLines < maxLines):
            folders += str(self.multiText.GetLineText(numLines))
            numLines += 1
            if numLines != maxLines:
                folders += "|"
        guiFunctions.configWrite(section, "folder", folders)

        guiFunctions.statusText(self, "Defaults saved...")
Beispiel #3
0
    def bt_SaveDefaultsClick(self, event):
        section = "launch"

        guiFunctions.configWrite(section, "proxy", self.rd_Proxy.Value)
        guiFunctions.configWrite(section, "db1_check", self.ck_DB1.Value)
        guiFunctions.configWrite(section, "db1_dbname", self.ck_DB1.Label)
        guiFunctions.configWrite(section, "db1_proxyname", self.tc_DB1.Value)
        guiFunctions.configWrite(section, "db2_check", self.ck_DB2.Value)
        guiFunctions.configWrite(section, "db2_dbname", self.ck_DB2.Label)
        guiFunctions.configWrite(section, "db2_proxyname", self.tc_DB2.Value)
        guiFunctions.configWrite(section, "db3_check", self.ck_DB3.Value)
        guiFunctions.configWrite(section, "db3_dbname", self.ck_DB3.Label)
        guiFunctions.configWrite(section, "db3_proxyname", self.tc_DB3.Value)
        guiFunctions.configWrite(section, "db4_check", self.ck_DB4.Value)
        guiFunctions.configWrite(section, "db4_dbname", self.ck_DB4.Label)
        guiFunctions.configWrite(section, "db4_proxyname", self.tc_DB4.Value)
        guiFunctions.configWrite(section, "db5_check", self.ck_DB5.Value)
        guiFunctions.configWrite(section, "db5_dbname", self.ck_DB5.Label)
        guiFunctions.configWrite(section, "db5_proxyname", self.tc_DB5.Value)
        guiFunctions.configWrite(section, "db6_check", self.ck_DB6.Value)
        guiFunctions.configWrite(section, "db6_dbname", self.ck_DB6.Label)
        guiFunctions.configWrite(section, "db6_proxyname", self.tc_DB6.Value)
        guiFunctions.configWrite(section, "db7_check", self.ck_DB7.Value)
        guiFunctions.configWrite(section, "db7_dbname", self.ck_DB7.Label)
        guiFunctions.configWrite(section, "db7_proxyname", self.tc_DB7.Value)
        guiFunctions.configWrite(section, "db8_check", self.ck_DB8.Value)
        guiFunctions.configWrite(section, "db8_dbname", self.ck_DB8.Label)
        guiFunctions.configWrite(section, "db8_proxyname", self.tc_DB8.Value)

        guiFunctions.statusText(self, "Defaults saved...")
Beispiel #4
0
    def bt_SaveDefaultsClick(self, event):
        section = "virtuals"
        guiFunctions.configWrite(section, "type", self.combo_typeOptions.GetCurrentSelection())
        guiFunctions.configWrite(section, "title", self.tc_Title.Value)

        guiFunctions.configWrite(section, "artist", self.tc_Artist.Value)
        guiFunctions.configWrite(section, "albumartist", self.tc_AlbumArtist.Value)
        guiFunctions.configWrite(section, "composer", self.tc_Composer.Value)
        guiFunctions.configWrite(section, "year", self.tc_Year.Value)
        guiFunctions.configWrite(section, "genre", self.tc_Genre.Value)
        guiFunctions.configWrite(section, "cover", self.tc_Cover.Value)
        guiFunctions.configWrite(section, "discnumber", self.tc_DiscNumber.Value)

        folders = ""
        numLines = 0
        maxLines=(int(self.tc_FilesFolders.GetNumberOfLines()))
        while (numLines < maxLines):
            folders += str(self.tc_FilesFolders.GetLineText(numLines))
            numLines += 1
            if numLines != maxLines:
                folders += "|"
        guiFunctions.configWrite(section, "tracks", folders)


        guiFunctions.statusText(self, "Defaults saved...")
Beispiel #5
0
    def bt_SaveDefaultsClick(self, event):
        section = "virtuals"
        guiFunctions.configWrite(section, "type", self.combo_typeOptions.GetCurrentSelection())
        guiFunctions.configWrite(section, "title", self.tc_Title.Value)

        guiFunctions.configWrite(section, "artist", self.tc_Artist.Value)
        guiFunctions.configWrite(section, "albumartist", self.tc_AlbumArtist.Value)
        guiFunctions.configWrite(section, "composer", self.tc_Composer.Value)
        guiFunctions.configWrite(section, "year", self.tc_Year.Value)
        guiFunctions.configWrite(section, "genre", self.tc_Genre.Value)
        guiFunctions.configWrite(section, "cover", self.tc_Cover.Value)
        guiFunctions.configWrite(section, "discnumber", self.tc_DiscNumber.Value)

        folders = ""
        numLines = 0
        maxLines=(int(self.tc_FilesFolders.GetNumberOfLines()))
        while (numLines < maxLines):
            folders += str(self.tc_FilesFolders.GetLineText(numLines))
            numLines += 1
            if numLines != maxLines:
                folders += "|"
        guiFunctions.configWrite(section, "tracks", folders)


        guiFunctions.statusText(self, "Defaults saved...")
Beispiel #6
0
    def bt_SaveDefaultsClick(self, event):
        section = "extract"

        guiFunctions.configWrite(section, "database_source",
                                 self.tc_MainDatabase.Value)
        guiFunctions.configWrite(section, "database_target",
                                 self.tc_TargetDatabase.Value)
        guiFunctions.configWrite(
            section, "createdidx",
            self.combo_LogicalCreated.GetCurrentSelection())
        guiFunctions.configWrite(section, "createdval",
                                 self.tc_DaysAgoCreated.Value)
        guiFunctions.configWrite(
            section, "insertedidx",
            self.combo_LogicalInserted.GetCurrentSelection())
        guiFunctions.configWrite(section, "insertedval",
                                 self.tc_DaysAgoInserted.Value)
        guiFunctions.configWrite(
            section, "modifiedidx",
            self.combo_LogicalModified.GetCurrentSelection())
        guiFunctions.configWrite(section, "modifiedval",
                                 self.tc_DaysAgoModified.Value)
        guiFunctions.configWrite(
            section, "accessedidx",
            self.combo_LogicalAccessed.GetCurrentSelection())
        guiFunctions.configWrite(section, "accessedval",
                                 self.tc_DaysAgoAccessed.Value)
        guiFunctions.configWrite(section, "yearidx",
                                 self.combo_LogicalYear.GetCurrentSelection())
        guiFunctions.configWrite(section, "yearval", self.tc_Year.Value)
        guiFunctions.configWrite(section, "genre", self.tc_Genre.Value)
        guiFunctions.configWrite(section, "artist", self.tc_Artist.Value)
        guiFunctions.configWrite(section, "composer", self.tc_Composer.Value)
        guiFunctions.configWrite(
            section, "bitrateidx",
            self.combo_LogicalBitrate.GetCurrentSelection())
        guiFunctions.configWrite(section, "bitrateval", self.tc_Bitrate.Value)
        guiFunctions.configWrite(section, "last", self.tc_Last.Value)
        guiFunctions.configWrite(section, "verbose",
                                 self.ck_ExtractVerbose.Value)
        guiFunctions.configWrite(section, "overwrite",
                                 self.ck_OverwriteExisting.Value)

        guiFunctions.statusText(self, "Defaults saved...")
Beispiel #7
0
    def bt_SaveDefaultsClick(self, event):
        section = "extract"

        guiFunctions.configWrite(section, "database_source", self.tc_MainDatabase.Value)
        guiFunctions.configWrite(section, "database_target", self.tc_TargetDatabase.Value)
        guiFunctions.configWrite(section, "createdidx", self.combo_LogicalCreated.GetCurrentSelection())
        guiFunctions.configWrite(section, "createdval", self.tc_DaysAgoCreated.Value)
        guiFunctions.configWrite(section, "insertedidx", self.combo_LogicalInserted.GetCurrentSelection())
        guiFunctions.configWrite(section, "insertedval", self.tc_DaysAgoInserted.Value)
        guiFunctions.configWrite(section, "modifiedidx", self.combo_LogicalModified.GetCurrentSelection())
        guiFunctions.configWrite(section, "modifiedval", self.tc_DaysAgoModified.Value)
        guiFunctions.configWrite(section, "accessedidx", self.combo_LogicalAccessed.GetCurrentSelection())
        guiFunctions.configWrite(section, "accessedval", self.tc_DaysAgoAccessed.Value)
        guiFunctions.configWrite(section, "yearidx", self.combo_LogicalYear.GetCurrentSelection())
        guiFunctions.configWrite(section, "yearval", self.tc_Year.Value)
        guiFunctions.configWrite(section, "genre", self.tc_Genre.Value)
        guiFunctions.configWrite(section, "artist", self.tc_Artist.Value)
        guiFunctions.configWrite(section, "composer", self.tc_Composer.Value)
        guiFunctions.configWrite(section, "bitrateidx", self.combo_LogicalBitrate.GetCurrentSelection())
        guiFunctions.configWrite(section, "bitrateval", self.tc_Bitrate.Value)
        guiFunctions.configWrite(section, "last", self.tc_Last.Value)
        guiFunctions.configWrite(section, "verbose", self.ck_ExtractVerbose.Value)
        guiFunctions.configWrite(section, "overwrite", self.ck_OverwriteExisting.Value)

        guiFunctions.statusText(self, "Defaults saved...")
Beispiel #8
0
    def bt_SaveDefaultsClick(self, event):
        section = "launch"

        guiFunctions.configWrite(section, "proxy", self.rd_Proxy.Value)
        guiFunctions.configWrite(section, "db1_check", self.ck_DB1.Value)
        guiFunctions.configWrite(section, "db1_dbname", self.ck_DB1.Label)
        guiFunctions.configWrite(section, "db1_proxyname", self.tc_DB1.Value)
        guiFunctions.configWrite(section, "db2_check", self.ck_DB2.Value)
        guiFunctions.configWrite(section, "db2_dbname", self.ck_DB2.Label)
        guiFunctions.configWrite(section, "db2_proxyname", self.tc_DB2.Value)
        guiFunctions.configWrite(section, "db3_check", self.ck_DB3.Value)
        guiFunctions.configWrite(section, "db3_dbname", self.ck_DB3.Label)
        guiFunctions.configWrite(section, "db3_proxyname", self.tc_DB3.Value)
        guiFunctions.configWrite(section, "db4_check", self.ck_DB4.Value)
        guiFunctions.configWrite(section, "db4_dbname", self.ck_DB4.Label)
        guiFunctions.configWrite(section, "db4_proxyname", self.tc_DB4.Value)
        guiFunctions.configWrite(section, "db5_check", self.ck_DB5.Value)
        guiFunctions.configWrite(section, "db5_dbname", self.ck_DB5.Label)
        guiFunctions.configWrite(section, "db5_proxyname", self.tc_DB5.Value)
        guiFunctions.configWrite(section, "db6_check", self.ck_DB6.Value)
        guiFunctions.configWrite(section, "db6_dbname", self.ck_DB6.Label)
        guiFunctions.configWrite(section, "db6_proxyname", self.tc_DB6.Value)
        guiFunctions.configWrite(section, "db7_check", self.ck_DB7.Value)
        guiFunctions.configWrite(section, "db7_dbname", self.ck_DB7.Label)
        guiFunctions.configWrite(section, "db7_proxyname", self.tc_DB7.Value)
        guiFunctions.configWrite(section, "db8_check", self.ck_DB8.Value)
        guiFunctions.configWrite(section, "db8_dbname", self.ck_DB8.Label)
        guiFunctions.configWrite(section, "db8_proxyname", self.tc_DB8.Value)

        guiFunctions.statusText(self, "Defaults saved...")