30 boarddb_file = os.path.join(Crossfire.LocalDirectory(),
'crossfireboard')
37 def write(self, boardname, author, message):
38 if not boardname
in self.
boarddb:
39 self.
boarddb[boardname]=[[author,message]]
42 temp.append([author,message])
47 elements=self.
boarddb[boardname]
53 if id>0
and id<=len(self.
boarddb[boardname]):
62 return len(self.
boarddb[boardname])
68 if id>0
and id<=len(self.
boarddb[boardname]):
69 author,message=self.
boarddb[boardname][id-1]