def __init__ (self): self.data = [] self.coding = "utf_8" configfile = os.path.join(gamerec_cfgfolder(), "SQLiteChessGC.txt") if os.access(configfile, os.R_OK): self._loadconfig(configfile) else: self.tags = ["Event","Site","Date","Round","Board","White","Black","WhiteElo","BlackElo","TimeControl","Result"]
def __init__ (self): self.data = [] self.coding = "latin_1" templatefile = os.path.join(gamerec_cfgfolder(), "PGNChessGC.pgn") if os.access(templatefile, os.R_OK): self._loadtemplate(templatefile) else: self.tags = ["Event","Site","Date","Round","White","Black","Result"] self.addtagspos = 6 #set to -1 for not placing additional tags self.gameformat = ""