1
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2
# See LICENSE for details.
5
def getNumber(filename):
8
def getReference(filename):
13
def __init__(self, filename):
15
self.indexFilename = None
18
Chapter = self.Chapter
20
getNumber = self.getNumber
22
getReference = self.getNumber
30
return [c[0] for c in self.chapters]
32
def getNumber(self, filename):
33
for c in self.chapters:
38
def getIndexFilename(self):
39
return self.indexFilename
41
def Chapter(self, filename, number):
42
self.chapters.append((filename, number))
44
def Index(self, filename):
45
self.indexFilename = filename